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)
- Can we add customdata to the px.density_heatmap?
- Plotly.rs call for maintainers HOT 1
- ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed HOT 3
- Update to plotly.js 2.29.0 HOT 2
- Bug: Plotly functions (`px.bar`) throws assertion error when x, y, color parameters is used for String type columns of Polars DataFrame HOT 1
- Bug: Missing build step in `contributing.md`? Not sure what it is HOT 6
- Feature request: heatmap with data centering HOT 1
- Minor Ticks Array update mode not working HOT 1
- Sankey align plotly v5.19.0, initial issue #6800 HOT 3
- helpful errors when choropleth features and data don't match HOT 4
- [Feature Request] Simple independent axes for facet_row and facet_col HOT 1
- [feature request] Option to add "select" mode on any figure (specifically, Heatmap) HOT 1
- Time Series and Date Axes in Python HOT 1
- only the last 8 figures shown when using for-loop HOT 1
- kaleido deadlocks on windows HOT 1
- Bug: Recently added cornerradius/barcornerradius not functioning HOT 5
- Feat request: ability to select multiple shapes to erase
- Alignment problem HOT 5
- How to draw a word cloud map? HOT 1
- not all hoverdata are displayed when there is a large amount of data HOT 3
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.