Closed
Description
Dear all
Many thanks for all your wonderful efforts with Plotly
I just wanted to ask if it might be possible to tweak the range function a little
currently an axis range can be set in the layout like this ...
layout = go.Layout(
xaxis=dict(
range=[2, 5]
),
in some cases it would be desirable to only specify a min value.
Plotly can then work out the max value automatically.
Or perhaps a user would want to set a max value and have a plotly work out the min value
Either-way it would be nice (for me at least) to only specify one of the range limits and not both. However I can see why this might not be a highly required function and I'm sure there are lots of other things to do first
matplotlib offers this function ...
plt.xlim(2,5) #sets a range
plt.gca().set_xlim(xmin=2) # sets only the lower x value and allows computer to work out upper value
plt.gca().set_ylim(ymax=50) # sets only the lower y value and allows computer to work out upper value