trixi-framework/Trixi.jl

Make axis labels created by `PlotDataXD` objects more flexible

Open

#590 opened on May 22, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Julia (686 stars) (153 forks)batch import
enhancementgood first issuevisualization

Description

Right now, axis labels for plotting with Plots.jl are automatically determined to be x, y, or z (see _get_dimensions and _get_guides in src/visualization/plot_recipes.jl). This precludes using PlotData1D from using it conveniently for something like TimeSeriesCallback results.

A possible approach would be to store the axis labels with the PlotDataXD objects depending on from which data source they were created, instead of determining the labels on the fly at plot time.

Contributor guide

Make axis labels created by `PlotDataXD` objects more flexible · trixi-framework/Trixi.jl#590 | Good First Issue