Aspect on semi-log plots
See original GitHub issueThe aspect parameter can be used to set the aspect of a plot:
%%opts Curve [ aspect=2]
hv.Curve((np.linspace(0.1,10 )))
However, when setting one of the axis to log, the aspect parameter is ignored:
%%opts Curve [logy=True, aspect=2]
hv.Curve((np.linspace(0.1,10 ),np.linspace(0.1,100 )))
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Aspect ratio in semi-log plot with Matplotlib - Stack Overflow
I want the ratio of the length and height of this rectangle to be given by the golden mean ,i.e., dx/dy=1.618033... If the...
Read more >Aspect on semi-log plots · Issue #996 · holoviz/holoviews
I've noticed this as well and haven't yet been able to figure out what's going on here. Presumeably this expression doesn't work correctly ......
Read more >Semilog plot (x-axis has log scale) - MATLAB semilogx
This MATLAB function plots x- and y-coordinates using a base-10 logarithmic scale on the x-axis and a linear scale on the y-axis.
Read more >Semi-Log Plot - an overview | ScienceDirect Topics
Special note: the concentration of drug in plasma is commonly plotted on a semi-log plot, ie, the x-axis is linear and y-axis is...
Read more >Semi-log plot - Wikipedia
The log–linear type of a semi-log graph, defined by a logarithmic scale on the y-axis (vertical), and a linear scale on the x-axis...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A temporary solution is to set the figure size to force it to be square:
the 1.1 scaling is for avoiding cuts in the labels, should be adapted for case to case.
@philippjfr - You say you have a fix for
loglog
plots, but I still cannot get an equal aspect ratio for them. Anytime I attempt to set it - it squishes the X axis while elongating the y axis. Otherwise, its pretty much the opposite.Results in something like this:
Am I doing something inherently wrong with trying to get an equal aspect ratio? Is there any workaround? I’ve also tried setting the
xscale
andyscale
to logs, same thing.Similar code, but for non log/log gives something like this: