-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Plots 2.0 #4904
base: master
Are you sure you want to change the base?
Plots 2.0 #4904
Conversation
* remove deprecated backends * move GR to extension * make plot3d work * make heatmap work * factor components into modules * finish Surface module * export is_horizontal from Fonts * start refactoring Plot, Subplot, etc. components * change version * continue module shuffling * continued refactoring * remove orientation * minimal usable state * format * remove makekw * anything up to Segments * move series stuff from utils * use Arrows * create Colorbars module * move axes stuff (precompiling state) * let's relax deps and add them back later if needed (macOS issue) * only 2 tests fail now * restructure extension logic * remove unicode for now * GR extension * update deps * init step of gr * proper init of GR * for now manually activate the backend * road to fixing gr * revert some changes * fix import exports * fix measures * clarify name space * might need to be reverted, shape->Shape (too confusing_ * return lost wrap * types and modules * fix more things * add gr function * remove stale and fix naming * added unicode backend * unicodeplots works * update runtests * only use explicitly imported names in backends * rename wrap to protect * remove pre post imports, move to alignment jl * alignment jl * remove comments * fix typo * finally fix InputWrapper, misc changes * import overloaded, namespace fix * fixing per backend exceptions * alost all tests are passing * fix exports * trying to fix project toml * try to resolve deps * move other backends to the extensions * start pgfplotsx * add backends to weakdeps * recover * already defined * fix GR plot area method overload * plotarea methods are overloaded in layouts.jl * more fixes * fix test * namespace fixes * fix namespaces * revert later * rm pyplot * remove requires * add PGFPlotsX imports * bump julia compat * create runtime functions for all backends * improve error handling * pgfplotsx loading * get tests running * fix names, skip StatsPlots examples * test on 1.10 * remove pyplot remainings * don't test julia < 1.9 * run julia formatter * add pythonplotbackend * fix init python plot * gaston working * reorganize plotly backends * update kaleido compat * format * remove PlotlyBase compat * make default backend functional * make plotly functional * naming and PlotlyJS * get gaston running * run more tests * move dev in ci * dev both at the same time * fix syntax * don't dev twice * only load Gtk if not on CI * add missing using statement for PlotlyJS * more imports * move merge_with_base_supported to Commons * make Plotly module * skip non-working tests * fix filtering * format * invert filter * fix pgfplotsx warning * don't test Gaston * fix cgrad missing * format --------- Co-authored-by: Simon Christ <[email protected]> Co-authored-by: Simon Christ <[email protected]> Co-authored-by: = <=>
@t-bltg do you intend to release this as a 1.x release? |
If we can make it non breaking, it would make things easier and end endless discussions. |
Well, there would be a few changes that we'd need to roll back for this, like removal of pgfplots and I removed some functions also. But I also don't quite see how to make switching of backends non-beraking since, what was using Plots
pythonplot() is now using Plots
import PythonPlot
pythonplot() |
I still don't get why can't 2.0 be breaking and why having a helpful error message isn't enough as a solution as per my comment in the issue #4565. Having GR as the default backend feels bad to me. I understand that nobody changes the backend but this way backend malfunctioning could be diagnosed easier. Then if the backend doesn't work people can learn about other backends. I really don't buy the keep gr argument by searching GitHub code. Plots 2.0 isn't just for the users but also for debugging and long term stability. Keeping gr as the default is not good imo. Flux got rid of it's CUDA for this reason and it works fine, new users can adapt we just need to leave good info/warn messages |
I'm sorry that I'm late into the discussion and if some undoing needs to be done but we should prioritise long term good with 2.0. GR being the default is also what defers people from using plots, if users can learn about the flexibility that's great too. Pyplot imo works more stably with various fonts and scalings. The purpose of package extensions is exactly this. Splitting into plotsbase and just plots to keep the standard interface means that we never need to go to 2.0 then. 2.0 by definition is breaking and that's ok. Plots is not a low level package and hardly any packages take dep on Plots. Interactive usage is easier to adapt to 2.0 anyways in case the help messages are well stated. We also need to think about column major order to make Plots play nicely with others and streamline the column major way. These two changes are by far the most important, both being breaking and that's ok cause it's 2.0. |
I get why people might object with needing to import GR explicitly, but you know adding such import help long term in that people would realize that there are more backends than just GR, and that the errors are coming because of 'import GR' not 'using Plots'. Im not kidding half of our issues are because GR didn't build or something like that. In the current scenario users try to import Plots it errors and then there's frustration. With gr free plots GR will throw it's warnings right awa and we can throw warnings and stuff like your GR loading failed, try these other backends. |
I've omitted this, so I've restored the 2.0 label.
I get this, but if no one implements it, this shouldn't block a release.
I would be in favor of dropping GR as the default backend. But on the other end, adding In #4914, I've finalized the way modules and extensions should be written with a lot of cleanups, and restoration of the precompile statements, but unfortunately, it broke the reference tests in subtle ways. What a mess ! I like the new splitting of |
I've made progress and fixed the tests in #4914, everything is passing locally, Currently, there is no solution to generate precompile statements for a different backend than GR in
|
* rework extension `__init__` mechanism * checkpoint plotly * fix `pythonplot` * format * more `pythonplot` fixes * checkpoint replace * syntax * fix `plotlyjs` * restructure modules * stable `GR` * checkpoint broken `references` gr * broken viewport * fix `dev` * update * no project * remove `--project` * update * fix `plotarea` * fixes * stable `PlotsBase` * cleanup * format * restrcit gaston to `linux` * restrcit `PlolyJS` test * update format * update action * update `Aqua` * cleanup - fix `Plots` tests * move preferences back to `PlotsBase` * simplifications * format * change versions * rework ci * format * test downstream * update ci * move ci scripts * fix * fix * update * debug ci * fix * update versions * update * update * update * update * update * update * update * update * restore CI * update workflow * add `PlotsBase` precompile statements * update tests * update preference - simplifications * update test * update
@BeastyBlacksmith, how can we move forward now ? Embedded modules need more cleanup, but at least the port to extensions is now complete, with 100% previous tests passing. |
The docs are now fully functional on |
@BeastyBlacksmith, would you be in favor of integration PlotThemes into this monorepo ? |
Thanks a lot !
Yeah, thats probably a good idea |
CI green, finally 💚🐍🍃🌱🐸♻️☘️🟢🟩🍏🍵! |
* @df -- Support string column names Add a special case to `add_sym!` to convert an `AbstractString` column name to a `Symbol` before adding it. The old behavior would iterate over the string and try to add each character as a column name. This produced a stack overflow, since `add_sym!` had no special case for `Char`, resulting in indefinite recursion. * Add Ron Wolf to .zenodo.json
Dead link updated with the new location for Quant Econ tutorial.
This is the development branch for Plots 2.0.
What changed
PlotsBase
,Plots
becomes a wrapper forPlotsBase
+GR
(per [RFC] Plots2.0
#4565 (comment)), making it non-breaking;@require
;Preferences
chosen backend;Example:
What works
PlotsBase
andPlots
tests;Preferences
based backend selection.What does not work
Help needed:
PlotsBase
GraphRecipes
andStatsPlots
from this monorepo to theGeneral
registry.Decisions to be made
Issues needing attention please add more or checkoff resolved:
#4565 (comment)
Copy of that:
Labeled issues:
minorticks
semantics #4532Project.toml
#4631Labeled PRs:
pgfplots
#4326@df
macro to Plots #3351Closes #4326