Skip to main content
Ctrl+K

atompy 4.20.3 documentation

  • Plotting
  • Data Analysis
  • Input/Output
  • Physics
  • Examples & Tutorials
  • Plotting
  • Data Analysis
  • Input/Output
  • Physics
  • Examples & Tutorials

Section Navigation

  • Plotting
    • 1D single plot
    • 2D single plot using imshow
    • 2D single plot using pcolormesh
    • Colormaps and Colorbars
    • Resizing Axes
  • 1D histograms
    • Create histograms
    • Normalize a 1D histogram
  • 2D histograms
    • Normalize a 2D histogram
    • Profile along x-axis
    • Profile along y-axis
    • Projection onto x-axis
    • Projection onto y-axis
    • Remove zeros from colormap
  • Sample a random distribution
  • Set up Visual Studio Code for Python
  • Examples & Tutorials
  • Plotting

Plotting#

matplotlib stuff I wish I knew sooner#

matplotlib.axes.Axes.set_box_aspect()

Set aspect ratio of an axes. As opposed to matplotlib.axes.Axes.set_aspect(), this sets the physical aspect ratio within the figure, not the aspect ratio of the data within the axes.

Examples#

  • 1D single plot
    • Using matplotlib directly
    • Using create_1d_plot()
  • 2D single plot using imshow
    • Using matplotlib directly
    • Using create_2d_plot()
  • 2D single plot using pcolormesh
    • Using matplotlib directly
    • Using create_2d_plot()

Tutorials#

  • Colormaps and Colorbars
    • Add colorbar to plots
    • Creating custom colormaps
  • Resizing Axes
    • Unexpected bahaviour and workarounds

previous

Examples & Tutorials

next

1D single plot

On this page
  • matplotlib stuff I wish I knew sooner
  • Examples
  • Tutorials

This Page

  • Show Source

© Copyright MIT.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.16.1.