Ways in which revolvers are not the katanas of guns:
...
Revolvers are generally incredibly simple and cheap to build, operate and maintain compared to semi auto pistols, submachine guns, assault rifles, light machine guns, etc.
Conversely, katanas require a significant amount of skill and practice to wield proficiently, as compared to many, but not all, other kinds of swords, and are/were also comparatively more difficult to properly forge and balance than many other kinds of swords, and were quite expensive.
...
Revolvers were incredibly common during 'the West', almost anyone could fairly easily equip themselves with one, and many did.
Katanas, for essentially all of their history, were only allowed to be carried by wealthy, royals or nobles or warlords, and their extremely small in number official bodyguards/goons, and soldiers. The vast majority of people were/are legally barred from owning or carrying them.
...
One on one revolver quickdraw duels almost never happened in real life.
One on one katana honor duels were actually somewhat/fairly common amongst those who actually had them.
...
Other points:
Revolvers are romanticized akin to Katanas because A Fistful of Dollars is basically a shot for shot remake of Yojimbo.
Kurosawa sued Leone over this, and won 15% of A Fistful of Dollars' sales revenue.
Nonetheless, A Fistful of Dollars was widely influential on future western films.
The modern, relative popularity of revolvers in real life is a result of their simplicity, reliability and inexpensiveness compared to other hand guns.
They would still be largely popular irl even without their depiction in media.
Katanas, on the other hand, are basically only popular in media in the West due to media, very few people actually own a katana, ever fewer have enough Iaido training to know how to use one.
Compared to revolvers, they would probably be far less popular irl were it not for the media exposure.