This thread is forked from Break in both x and y axis - Statalist because it is a digression from the topic indicated by the title and because I have what is to me a different positive message.
I hope that everyone interested can agree that
* Some people want to publish graphs with breaks on one or even two axes.
* Stata doesn't support scale breaks directly: you need to use other devices to implement scale breaks.
Stata | FAQ: Showing scale breaks on graphs stands as evidence that I agree that occasionally a scale break makes sense.
Where there is scope to disagree is over how often logarithmic (or other nonlinear) scales are a better idea.
John Mullahy revived that thread on breaks in axes by posting a graphic with one very long bar twisted into a long snake. One merit of his example (among several) is that the data can easily be read off the graph to allow experiment with other possibilities.
So snakes or even spirals are another solution. Recently there has been renewed interest in the graphical work of W.E. Du Bois, who used them often, but similar ideas have a long history.
The context of Du Bois was very much one of outreach, of graphics intended to be read as well by people with limited schooling and without much experience or expertise in interpreting graphics. That makes sense of not using logarithms for his purposes. To be clear, I have no information on whether Du Bois knew about logarithmic scales, let alone about whether they were considered. They were introduced several decades earlier.
But that context is not necessarily ours. If your concern is with graphics for any very wide readership, it is always vital to think about what people will understand. My concern is usually with graphics aimed at colleagues in the widest sense, including students and fellow researchers. For this group, my attitude is paternalistic: if you don't understand or feel uncomfortable with logarithmic scales, what you most need is a little explanation and a lot of examples so that in due course they do become familiar. As I have mentioned elsewhere, I was struck during the Covid pandemic of how better newspapers and television channels immediately started using logarithmic scales for graphics without fuss or fanfare, as no other scales made sense for many of the data.
Enough preamble. First come some code and then the resulting graphs using logarithmic scales and a commentary. Some of the commentary will seem too obvious to some readers to be spelled out, but no apologies otherwise.

If you think that the data will go fine as a table, that is a perfectly defensible point of view, and you probably bailed out long before reading this.
If you think that the original scale is fine -- it just implies one very long bar on a bar chart and all the others short -- that is a defensible point of view too, especially if the intent is to ram home a message that China dwarfs all other countries in this market.
All the graphs here echo the design in the original graphic, as cited by John, that horizontal layout is preferable to show text labels -- the country names -- legibly. All too often vertical layout obliges awkward solutions -- tiny font sizes, abbreviations, text on a slope -- that shouldn't be willingly indulged.
Now graph dot as I understand it allows yscale(log) as an option but I never, or almost never, get good results with that. The work-around is to calculate logarithms and then use a helper command to show axis labels that use the original units. The code flags that
-- currently commented out -- should be issued as a command to find the latest download location for mylabels if you have not previously installed it.
Having seen that the values range from about 2 million to about 200 million it seemed natural to base the labels to be shown on a logarithmic scale on a standard pattern which can be denoted 125. For much more discussion of related issues see Speaking Stata: Logarithmic Binning and Labeling. I both claim that this is the most thorough discussion anywhere that I know and admit that many smart first-year undergraduates (say) are capable of thinking through such small issues by themselves. Either way a simple but fundamental point: choosing a logarithmic scale but showing logarithms as axis labels only goes part way to explaining what is being shown. (Occasionally showing integer powers of 10 as such is the only way to avoid absurd numbers of zeros.)
A detail: I have found that the default dotted line grid degrades if the graph is ported to some other software. On that ground, and otherwise, I commend thin grey lines as grid for which
is an incantation to be varied according to taste. 
The second graph switches to twoway scatter -- which compared with graph dot makes some things easier, but obliges a few fairly simple tricks. We need a vertical axis which in the first instance is just the order of observations, as the data arrive sorted. (In some other problems, you will need to sort first.) The order of observations for this dataset is just the integers 1 to 10, but we really need the country names to be shown. Rather than typing out those names explicitly, a helper command labmask copies the values of a string variable containing the country names to be the value labels of the new numeric variable. The command is more versatile than for that single task.
Again the code
gives the latest download location for labmask (detail: if you want to cite this command, please cite it as published in the Stata Journal). I prefer to suppress axis ticks whenever one axis is essentially categorical, not numeric. A positive possibility with using scatter is that marker labels can be added easily. We just need -- at least with the default marker label position of 3 pm on a clock scale to add a little extra space to accommodate the largest marker label, 209 for China. As we're using logarithmic scale, the code
says to Stata: calculate the value of ln(240) and use the result immediately at this point.

The third graph shows that we could get there more directly by using the original data and leaning on xsc(log). If you reached that conclusion immediately, that's excellent.
Both the last two graphs add a little space above the first and below the last row: see how the scale goes from 0.8 to 10.2, not 1 to 10.
More obviously, all these graphs build in a personal bias, although you may be persuaded too, that whenever graphs have something of table flavour, it is natural, or at least congenial, not only to place an axis title at the top, but also the numeric axis itself. A riff on this point can be found at Speaking Stata: Axis Practice, or What Goes Where on a Graph. (Although I haven't done it here, that leaves more space if needed to specify at the bottom of the graph the data source and/or add any notes that seem essential.)
I hope that everyone interested can agree that
* Some people want to publish graphs with breaks on one or even two axes.
* Stata doesn't support scale breaks directly: you need to use other devices to implement scale breaks.
Stata | FAQ: Showing scale breaks on graphs stands as evidence that I agree that occasionally a scale break makes sense.
Where there is scope to disagree is over how often logarithmic (or other nonlinear) scales are a better idea.
John Mullahy revived that thread on breaks in axes by posting a graphic with one very long bar twisted into a long snake. One merit of his example (among several) is that the data can easily be read off the graph to allow experiment with other possibilities.
So snakes or even spirals are another solution. Recently there has been renewed interest in the graphical work of W.E. Du Bois, who used them often, but similar ideas have a long history.
The context of Du Bois was very much one of outreach, of graphics intended to be read as well by people with limited schooling and without much experience or expertise in interpreting graphics. That makes sense of not using logarithms for his purposes. To be clear, I have no information on whether Du Bois knew about logarithmic scales, let alone about whether they were considered. They were introduced several decades earlier.
But that context is not necessarily ours. If your concern is with graphics for any very wide readership, it is always vital to think about what people will understand. My concern is usually with graphics aimed at colleagues in the widest sense, including students and fellow researchers. For this group, my attitude is paternalistic: if you don't understand or feel uncomfortable with logarithmic scales, what you most need is a little explanation and a lot of examples so that in due course they do become familiar. As I have mentioned elsewhere, I was struck during the Covid pandemic of how better newspapers and television channels immediately started using logarithmic scales for graphics without fuss or fanfare, as no other scales made sense for many of the data.
Enough preamble. First come some code and then the resulting graphs using logarithmic scales and a commentary. Some of the commentary will seem too obvious to some readers to be spelled out, but no apologies otherwise.
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input str13 country float production
"China" 209
"Thailand" 22
"India" 12.5
"Brazil" 6.4
"Malaysia" 6
"Japan" 5
"United States" 4.1
"Mexico" 3.5
"South Korea" 2.5
"Turkey" 2.2
end
gen log_production = ln(production)
* search gr0092, entry
mylabels 2 5 10 20 50 100 200, myscale(ln(@)) local(labels)
graph dot (asis) log_production, over(country, sort(1) descending) exclude0 ///
yla(`labels') ysc(alt) ytitle(Air conditioner production 2025 (millions)) ///
linetype(line) lines(lw(vthin) lc(gs12)) name(logdot1, replace)
gen order = _n
* search gr0034, entry
labmask order, values(country)
scatter order log_production, ///
ytitle("") ysc(r(0.8 10.2) reverse) yla(1/10, noticks valuelabel glp(solid)) ///
mla(production) mlabsize(medium) xsc(alt range(. `=ln(240)')) ///
xlabels(`labels', nogrid) xtitle(Air conditioner production 2025 (millions)) ///
name(logdot2, replace)
scatter order production, ///
ytitle("") ysc(r(0.8 10.2) reverse) yla(1/10, noticks valuelabel glp(solid)) ///
mla(production) mlabsize(medium) xsc(log) xsc(alt range(. 240)) ///
xlabels(2 5 10 20 50 100 200, nogrid) xtitle(Air conditioner production 2025 (millions)) ///
name(logdot3, replace)
If you think that the data will go fine as a table, that is a perfectly defensible point of view, and you probably bailed out long before reading this.
If you think that the original scale is fine -- it just implies one very long bar on a bar chart and all the others short -- that is a defensible point of view too, especially if the intent is to ram home a message that China dwarfs all other countries in this market.
All the graphs here echo the design in the original graphic, as cited by John, that horizontal layout is preferable to show text labels -- the country names -- legibly. All too often vertical layout obliges awkward solutions -- tiny font sizes, abbreviations, text on a slope -- that shouldn't be willingly indulged.
Now graph dot as I understand it allows yscale(log) as an option but I never, or almost never, get good results with that. The work-around is to calculate logarithms and then use a helper command to show axis labels that use the original units. The code flags that
Code:
search gr0092, entry
Having seen that the values range from about 2 million to about 200 million it seemed natural to base the labels to be shown on a logarithmic scale on a standard pattern which can be denoted 125. For much more discussion of related issues see Speaking Stata: Logarithmic Binning and Labeling. I both claim that this is the most thorough discussion anywhere that I know and admit that many smart first-year undergraduates (say) are capable of thinking through such small issues by themselves. Either way a simple but fundamental point: choosing a logarithmic scale but showing logarithms as axis labels only goes part way to explaining what is being shown. (Occasionally showing integer powers of 10 as such is the only way to avoid absurd numbers of zeros.)
A detail: I have found that the default dotted line grid degrades if the graph is ported to some other software. On that ground, and otherwise, I commend thin grey lines as grid for which
Code:
linetype(line) lines(lw(vthin) lc(gs12))
The second graph switches to twoway scatter -- which compared with graph dot makes some things easier, but obliges a few fairly simple tricks. We need a vertical axis which in the first instance is just the order of observations, as the data arrive sorted. (In some other problems, you will need to sort first.) The order of observations for this dataset is just the integers 1 to 10, but we really need the country names to be shown. Rather than typing out those names explicitly, a helper command labmask copies the values of a string variable containing the country names to be the value labels of the new numeric variable. The command is more versatile than for that single task.
Again the code
Code:
search gr0034, entry
Code:
`= ln(240)'
The third graph shows that we could get there more directly by using the original data and leaning on xsc(log). If you reached that conclusion immediately, that's excellent.
Both the last two graphs add a little space above the first and below the last row: see how the scale goes from 0.8 to 10.2, not 1 to 10.
More obviously, all these graphs build in a personal bias, although you may be persuaded too, that whenever graphs have something of table flavour, it is natural, or at least congenial, not only to place an axis title at the top, but also the numeric axis itself. A riff on this point can be found at Speaking Stata: Axis Practice, or What Goes Where on a Graph. (Although I haven't done it here, that leaves more space if needed to specify at the bottom of the graph the data source and/or add any notes that seem essential.)
