6 ms·
Plotly.py 5.0
- F_J_H 5y agoPlotly is fantastic - great to see another release. Have been using it to integrate charts into Oracle Application Express (APEX), which works really well, and provides for much more interactive data visualizations over the built-in APEX charts.
- rozab 5y agoIcicle chart uses a divergent colormap when it should probably use a sequential one. Sometimes I wish I never saw that one talk
- nicolaskruchten 5y agoIn this case it's intentional: highlighting divergence from the global average :)
- pottertheotter 5y agoWhat talk are you referring to?
- peatmoss 5y agoRelated: Some time ago I remember reading that Plotly sent the data back to plotly’s servers. Is that old news / is there fully-local plotting now?
- nicolaskruchten 5y agoThis is definitely out of date! As of version 4.0, released two years ago, Plotly is "offline/local by default". Check out our docs: https://plotly.com/python/is-plotly-free/#can-i-use-plotly-for-python-offline-without-being-connected-to-the-internet https://plotly.com/python/is-plotly-free/#can-i-use-plotly-f...
- dec0dedab0de 5y agooh that's fantastic. I saw a plotly demo many years ago when you sponsored my local PUG, and while it looked cool, I never gave it a chance because I assumed it was just a web service.
- nicolaskruchten 5y agoMany years ago, indeed it was, but now you can use it and rest easy that your data isn't transiting through our servers unless you install the chart_studio module as well.
- fumblebee 5y agoI fell victim to this a couple of years back! Sometime later I discovered I'd inadvertently published a public dashboard that I really shouldn't have.
- nicolaskruchten 5y agoOuch. That definitely doesn't happen any more since v4 came out two years ago.
- markus_zhang 5y agoDash is really the go-to library if you want to build some complex, flexible dashboards. I found for highly customized dashboards it's a lot easier just to program your own instead of squeezing Tableau's rules.
- prionassembly 5y agoHow does Dash compare to Streamlit?
- markus_zhang 5y agoSorry never played with Streamlit.
- refactor_master 5y agoHave similar experience with Plotly + Streamlit when PowerBI starts to collapse under its own weight :) It’s also way simpler to just pull everything in and manipulate it in Pandas, if your data is not pristine from the get-go.
- markus_zhang 5y agoYeah man. With Python you have access to huge amount of libraries (and have better code quality TBH) while in Tableau you have to use whatever they give you. That said, Tableau is still useful for the "ordinary" dashboards, e.g. it's a lot easier if you just need to do some simple calculations and get your KPI. Tableau is still way faster than any other programming language.
- throwaway2568 5y agoPlotly is quite nice but I find Dash's use of HTML for layouts a bit forced. For dashboards I have been using Panel, which supports plotly plots, which keeps things closer to pure python https://panel.holoviz.org/index.html https://panel.holoviz.org/index.html The Devs recently added support for templates which can handle dynamic layouts (i.e drag and drop). https://panel.holoviz.org/reference/templates/React.html#templates-gallery-react https://panel.holoviz.org/reference/templates/React.html#tem...
- aarondia 5y agoI can attest first hand to how great Plotly is. I'm building Mito[1], an interactive spreadsheet that converts every edit you make into the equivalent Python code, it's also a Jupyter extension. We use Plotly for all of our visualizations -- letting users configure bar plots, histograms, scatter plots, etc similar to how you could in Excel. Plotly's API is really simple to use and it allows for interactivity right out of the box. It would have taken us months to recreate their functionality that we were able to get in days of implementation instead. [1] https://trymito.io/hn https://trymito.io/hn
- santiagobasulto 5y agoI’m wondering. How does that work in terms of pricing and license? Do you need to pay a fee to plotly?
- nicolaskruchten 5y agoPlotly.py is MIT-licensed and totally free for anyone for any purpose :)
- syntaxing 5y agoWhoa Mito is pretty neat! Is there a way to export what I did via the GUI into lines of code?
- billfruit 5y agoWhat is its level of support for interactive 3D plots? Is it build on top of Matplotlib?
- chriddyp 5y agoPlotly's 3D viz is built with WebGL & SVG, using libraries like regl & stack.gl. SVG is used for axes & text and WebGL for the high performance rendering of points and surfaces. Surfaces, lines, points, and subplots are all supported. See https://plotly.com/python/#3d-charts https://plotly.com/python/#3d-charts. For more complex 3D objects, Dash users can use dash-vtk. This includes things like point clouds, CFD simulations, 3D mesh, or 3D images.
- CopOnTheRun 5y agoWhat do people here think of plotly when compared to matplotlib? I've read through some of the api documentation and have created graphs with the latter, but don't have much experience with plotly.
- ENIanDEM 5y agoIt's really nice for exploring data. I find whenever I have ~5+ series on a single axis on mpl I start to struggle to differentiate colours & lines etc. I sort of addressed that by getting creative with dash styles etc, but still it's not ideal. Plotly is much more dynamic & I love the call outs etc. I do find it much less intuitive and less well documented than mpl and it's fussy about the shape of the data you give it. Maybe this new version improves on those things.
- nicolaskruchten 5y agoI'd love to hear more about what you found fussy in terms of shape of data... I've worked really hard to make Plotly Express as flexible as possible in terms of input formats (https://plotly.com/python/px-arguments/ https://plotly.com/python/px-arguments/) and Graph Objects will eat pretty much anything list-like :)
- ENIanDEM 5y agoHey, thanks for the response - it was actually exactly what you seem to have addressed re the wide & long formats. I'm still using v4.1 and ended up writing my own reshapeForPlotly() function which just called the pandas melt function. Will update to v5 now which sounds like it will simplify things. I think Plotly is great, btw! I use it a lot with streamlit for quick visualisations of big datasets. Thanks for your work on it. I always found the relationship between plotlyexpress & graph_objects confusing but the docs seem much more explanatory now than I remember from a year or so ago and the code snippets on the main plotly site seem much more abundant. Hopefully as it gets more widely used, the community support on stackoverflow etc will build too.
- patrick451 5y ago
- meristem 5y agoI used plotly in its earlier versions for my research. So glad they continue to develop it.
- jp0d 5y agoI'm a data analyst/engineer and I'm not very good at visualisations as they haven't been that important at my jobs. I know it sounds a bit weird. Recently I've been trying to make a Plotly-Dash report/webtool that will enable bidirectional flow of data. So far I haven't been able to get plotly running on Jupyter. The examples I've seen so far have been amazing. I wish I could make it work. Hopefully the latest version will help me produce plots inside Jupyter notebook for testing purposes.
- twobitshifter 5y agoYou may want to try out perspective. It seems to be able to do what you want, I’ve been looking to try it myself. https://perspective.finos.org/ https://perspective.finos.org/ Editable example https://bl.ocks.org/texodus/45b868833c9f456bd39a51e606412c5d https://bl.ocks.org/texodus/45b868833c9f456bd39a51e606412c5d
- jp0d 5y agoThanks mate. Will look into it. I've been following this youtube tutorial to set up a basic report frame from my data sources. https://www.youtube.com/watch?v=0mfIK8zxUds https://www.youtube.com/watch?v=0mfIK8zxUds
- jp0d 5y agoThis looks awesome. Probably really good for a financial dashboard. I'm trying to use Plotly Dash to mimic an invoice that'll have a few line items for our products. My data is updated monthly.
- F_J_H 5y agoLove the Icicle charts. Anyone know if they will become available in Ploty.js?
- nicolaskruchten 5y agoThey already are! Features land in Plotly.js first before being integrated into Plotly.py :)
- F_J_H 5y agoAwesome - thanks!
- pbowyer 5y agoCongratulations, this looks a really nice release! I'm wearing the Plotly t-shirt I got at PyCon UK years ago and it's started a few conversations. It's the best-fitting branded t-shirt I've had - if you have any left and want to send me another :)