Ref #1100 , tickmode set to invalid value in mpltools#1101
Ref #1100 , tickmode set to invalid value in mpltools#1101jonmmease merged 1 commit intoplotly:masterfrom
Conversation
* basevalidator throws an error on the boolean
| axis_dict['tick0'] = tick0 | ||
| axis_dict['dtick'] = dtick | ||
| axis_dict['tickmode'] = False | ||
| axis_dict['tickmode'] = None |
There was a problem hiding this comment.
I think it would be better to be explicit here and use 'auto' rather than None
There was a problem hiding this comment.
Can you maybe help me to understand what is going on? Are you trying to catch the axis scaling properties {“linear”, “log”, “symlog”, “logit”} from matplotlib.axes.Axes.set_xscale (other axis respectively)? There is no auto option. Maybe None is treated as auto?
It seems like despite the tickmode is set to None, it is inferred later on, for example the parsed JSON shows:
'layout': {'autosize': False,
'height': 360,
'hovermode': 'closest',
'margin': {'b': 41, 'l': 61, 'pad': 0, 'r': 79, 't': 14},
'showlegend': False,
'width': 434,
'xaxis':{...
'type': 'linear',
...},
'yaxis': {'anchor': 'x',
...
'type': 'linear',
...}
...
There was a problem hiding this comment.
btw, i chose None in the first place because of the code snippet axis_dict.pop('tickmode', None) in line 491.
| axis_dict['dtick'] = props['axes'][index]['tickvalues'][1] - \ | ||
| props['axes'][index]['tickvalues'][0] | ||
| axis_dict['tickmode'] = False | ||
| axis_dict['tickmode'] = None |
There was a problem hiding this comment.
Seems like this should be tick mode of 'log'. Would you mind trying this out on a simple matplotlib figure with a log axis?
There was a problem hiding this comment.
This is a matplotlib log example:

With None, it looks like:

and brings the warnings:
plotly.graph_objs.Annotation is deprecated.
...
Converted non-base10 x-axis log scale to 'linear'
...
Dang! That path collection is out of this world. I totally don't know what to do with it yet! Plotly can only import path collections linked to 'data' coordinates
With log, it looks like:

Same warning as in the None setting here.
I cannot see a difference between None and setting to log. What should it then be?
Despite that, there are obviously troubles converting non base10 logs.
|
Thanks for looking into setting the axis type to values other than Thanks for the contribution! |
Associated Issue: #1100