Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.57 KB

index.rst

File metadata and controls

43 lines (33 loc) · 1.57 KB

mATLASplotlib

Travis Build Code Health Coverage pypi

This package provides wrappers around matplotlib functionality produce plots compatible with the style guidelines for the ATLAS experiment at the LHC. It is particularly aimed at users who are not familiar with matplotlib syntax. Basic usage involves creating a canvas, plotting a dataset and saving the output to a file. For example, something like

import mATLASplotlib
with mATLASplotlib.canvases.Simple(shape="landscape") as canvas:
    x, y = [0, 1, 2, 3], [0, 1, 4, 9]
    canvas.plot_dataset(x, y, style="scatter", label="Example points", colour="black")
    canvas.save("simple_example")

will produce a minimal scatter plot with automatically determined axis limits and save this to a PDF (if not otherwise specified).

.. toctree::
    :maxdepth: 2

    source/introduction
    source/installation
    source/font_setup
    source/getting_started
    source/examples
    source/api