-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a few matplotlylib imperfections #46
Comments
@etpinard, this is perfect. Thanks for the list, I'll crank these out tonight. I hadn't ever thought to convert the '\n' to |
no problem. |
also, number (7), with the 'ticksuffix' is only allowed in polar, i believe. Even if you throw it in with |
for number (5), i like this idea, but i don't like being sneaky and changing things behind the user's back. For instance this could potentially be a nuisance if you're using mathjax and want to write something like EDIT: duh, |
@etpinard in (3), are you referring to the NB link? Those dashes are put in as traces, I don't think we should try to build in any heuristics there that basically try to infer the following: 'is the user using this trace as a gridline?' this likely won't get changed. |
for (4), somewhere down the road I made the choice to center data-referenced annotations. this is because the actual boxes around the annotations are a bit different for mpl and plotly, therefore things look a little weird. at any rate, here's that change: #48 |
Merging both
yields https://plot.ly/~etpinard/343 which is not bad at all. By zooming out, you can see both the title and the source and info annotations. I'll add matplotlylib impefection (8) here:
|
About imperfection (3): Randal's "grid lines" are actually traces themselves. They were made with:
so matplotlylib has no reason to considered them grid lines. My mistake. |
And, by the way, @theengineear I can take a shot at these if you prefer. |
nah, it's no problem. since you've been working with graphs more on the mpl side of things, it's probably most productive if we keep this workflow up! i'll just be honest about whether or not certain issues are fixable. perhaps we should start opening these issues in separate github issues though? That way we can close them as they're completed instead of letting this single issue thread get enormous. thanks for the help! |
Closed, as now these matplotlylib imperfections are packaged into separate Github issues. |
Here is a list of matplotlylib imperfections I noticed while helping Randal Olson convert one of his matplotlib figure to plotly.
For more, refer to this notebook.
So, running
erroneously generates
'showline':True
), even if the original does notticks: 'inside'
), even if the original does notdashed mpl grid lines are converted to dashed scatter traces (note that dashed grid lines are currently not supported in plotly)'xanchor': 'left'
to each annotation object.\n
escape sequences in strings are not converted to<br>
HTML tags'xref: 'paper'
and/or'yref: 'paper'
to make them visible'ticksuffix'
a valid for x and y axes, like for radial axes?)The text was updated successfully, but these errors were encountered: