Skip to content
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

More plot options, runtime plots, unnormalized pdf plots #78

Merged
merged 17 commits into from
Mar 27, 2023

Commits on Sep 13, 2022

  1. Configuration menu
    Copy the full SHA
    afae800 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e4f49e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d4f140e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    93b27fe View commit details
    Browse the repository at this point in the history
  5. Optionally make some plots at each output step to monitor progress

    Can be useful to monitor an ongoing simulation. This cannot be done by
    reading the output file, because opening the NetCDF file from two
    programs at once may corrupt it and crash either/both programs. Instead,
    if `runtime_plots = true` is passed in the input, a .png file with a
    bunch of plots of moments and distribution functions is produced at each
    output step. The plots are created in serial, and may take some time
    (~10s?) for high-resolution simulations.
    johnomotani committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    af35674 View commit details
    Browse the repository at this point in the history
  6. Save and load evolve_density and evolve_upar

    These can be useful for post-processing.
    johnomotani committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    3ab4976 View commit details
    Browse the repository at this point in the history
  7. Option to plot unnormalised f against z and unnormalised v_parallel

    Also requires updated version of Plots.jl (to be added later if/when
    JuliaPlots/Plots.jl#4298 is merged).
    johnomotani committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    83dd533 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f9ac1ab View commit details
    Browse the repository at this point in the history
  9. Fix export in post_processing.jl

    `export analyze_and_plot` -> `export analyze_and_plot_data`
    johnomotani committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    5d884dc View commit details
    Browse the repository at this point in the history
  10. Use PyPlot to work around Plots not supporting 2d heatmap coordinates

    Making animations directly with PyPlot.jl and matplotlib is not as neat,
    and the output is not consistent with Plots.jl, but it works without
    needing the update to Plots.jl in
    JuliaPlots/Plots.jl#4298
    johnomotani committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    842fe25 View commit details
    Browse the repository at this point in the history
  11. pip-install matplotlib in CI jobs

    Needed when using PyCall to import matplotlib.
    johnomotani committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    c8b1a33 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2022

  1. Use system Python for PyCall on all platforms in CI jobs

    Using the system Python is the default on Linux, but not macOS (or
    Windows). This commit explicitly sets the ENV["PYTHON"] variable so that
    all platforms use the system Python. This was needed to get PyCall to
    work correctly on macOS - previously Julia's internal Conda-installed
    Python had linking errors when using matplotlib.
    johnomotani committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    b5bec8b View commit details
    Browse the repository at this point in the history
  2. Fix figure sizes

    When creating figures for multiple runs, we need to set the figure size
    explicitly for 2d plots (it should get wider when there are more runs to
    avoid squashing the figures). This commit changes the settings so that
    the size of the plot for each run matches the Plots.jl default size for
    a single plot.
    johnomotani committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    e5ae078 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. Configuration menu
    Copy the full SHA
    1ed8c47 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2022

  1. Clear PyPlot figure after making f_unnorm plots

    After switching between PyPlot interface and Plots interface, the Figure
    apparently does not get cleaned up without an explicit call to
    Plots.closeall().
    johnomotani committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    3862674 View commit details
    Browse the repository at this point in the history
  2. Make plots of unnormalized f at the wall boundaries

    Includes some refactoring of functions used to get/plot unnormalized f
    so that they can be reused in more ways.
    johnomotani committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    cc46f59 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    52c30df View commit details
    Browse the repository at this point in the history