Skip to content

Rewrite plotting functions and include introduction notebook#101

Merged
pjaap merged 4 commits intomasterfrom
feature/new-plotting
Jan 15, 2026
Merged

Rewrite plotting functions and include introduction notebook#101
pjaap merged 4 commits intomasterfrom
feature/new-plotting

Conversation

@pjaap
Copy link
Copy Markdown
Member

@pjaap pjaap commented Jan 12, 2026

This is a major rewrite of the plotting functions defined in ct_plotting.jl.

@mariekeosw and I changed the following things (cf. CHANGELOG entry):

  • all library plotting functions in ct_plotting are now changed to use a GridVisualizer

Before, we had a hard dependency on PyPlot which caused spurious problems on some systems. Now a Plotter of choice can be used via GridVisualize.jl.

  • the old signature is still available but deprecated

Otherwise the version would be breaking. However, the user needs to add PyPlot of PythonPlot to their global enviroment to use the old function.

  • the user can choose any plotter supported by GridVisualize (currently PythonPlot, Makie flavors and PlutoVista)
  • PyPlot and Plots are also supported, but not recommended
  • in the examples, the plotting key word is removed. No plotting is indicated by Plotter = nothing
  • all 1D examples are rewritten to use the new plotting routines
  • all 2D examples are still hard-wired to Py[thon]Plot, but the users have to provide this package in their own (global) environment

The 2D examples make heavy use of Matplotlib features and this should be kept as is.


This change allows also to generate composed images in the examples instead of generating a single image for each plot.

TODOs:

@pjaap pjaap changed the title Rewrite plotting functions and include introdution notebook Rewrite plotting functions and include introduction notebook Jan 12, 2026
@pjaap pjaap force-pushed the feature/new-plotting branch from 5f8f41d to e3f154b Compare January 12, 2026 10:55
@pjaap pjaap force-pushed the feature/new-plotting branch from e3f154b to 8c05c80 Compare January 12, 2026 10:56
@pjaap
Copy link
Copy Markdown
Member Author

pjaap commented Jan 14, 2026

Ok, I'll remove the activate line from the notebook and merge

@pjaap pjaap merged commit c05f1c1 into master Jan 15, 2026
11 checks passed
@pjaap pjaap deleted the feature/new-plotting branch January 15, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants