Comments (11)
@etpinard, this is perfect. Thanks for the list, I'll crank these out tonight. I hadn't ever thought to convert the '\n' to
, that's a really good call.
from plotly.py.
no problem.
from plotly.py.
also, number (7), with the 'ticksuffix' is only allowed in polar, i believe. Even if you throw it in with validate=False
, it doesn't show up in the JSON when you check it in plotly. not anything we can do about that for now.
from plotly.py.
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, '\n' != r'\n' == '\\n'
, this is no problem.
from plotly.py.
@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.
from plotly.py.
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
from plotly.py.
Merging both newlines
and mpl-annotations
into another (local) branch and running
import plotly.plotly as py
dataviz1 = plt.figure(...)
# ...
py.plot_mpl(dataviz1, resize=False)
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.
These beyond-axis-range annotations should have (in my opinion) 'xref: 'paper'
and/or 'yref: 'paper'
to make them visible as in mentioned in (6) even if they are set with data coordinates (see renderer.py).
I'll add matplotlylib impefection (8) here:
- Multi-line mpl annotations (e.g. Randal's source and info annotation) should be converted with
'align': 'left'
so that the text is left-aligned, which appears (from my NB) to be mpl's default behavior.
from plotly.py.
About imperfection (3):
Randal's "grid lines" are actually traces themselves. They were made with:
for y in range(10, 91, 10):
plot(range(1968, 2012), [y] * len(range(1968, 2012)), "--",
lw=0.5, color="black", alpha=0.3)
so matplotlylib has no reason to considered them grid lines. My mistake.
from plotly.py.
And, by the way, @theengineear I can take a shot at these if you prefer.
from plotly.py.
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!
from plotly.py.
Closed, as now these matplotlylib imperfections are packaged into separate Github issues.
from plotly.py.
Related Issues (20)
- tickmode='sync' option is not working as intended
- Cannot provide custom HTTP headers (e.g. bearer token) to Mapbox layer source HOT 2
- `Legendrank` does not work in plotly (pyscript) when `fill` argument is used HOT 2
- Test dependency versions are out of date
- why isn't fig.update_zaxes implimented
- Hover data not displaying on plotly map HOT 1
- plotly.express.scatter_geo() function cannot generate world map HOT 1
- Plotly legends cutoff in Quarto Dashboards
- Opacity and color not working together in px.scatter HOT 1
- Clarify installation of jupyterlab-plotly extension in documentation for JupyterLab 3.x HOT 2
- Making Radar Charts: make_trace_kwargs uses df.append which has been deprecated in pandas 2.0 HOT 1
- zorder doesn't work on version 5.21.0 HOT 5
- Shared X-axis spike remove tick marks from other subplots in Plotly?
- Update docs for using Jupyter HOT 1
- [Plotly Surface] Weird behavior of hover text for surfacecolor HOT 1
- Adding secondary-y latex legend name shifts x-axis coordinates
- `setDaemon()` Deprecation warning for `to_image`
- update development instructions for MacOS HOT 1
- [Feature request] Aggregate hover data for internal nodes in hierarchical plots
- Two docs examples not working with latest xarray
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotly.py.