Change axis range of the plot #457
-
Hi, Is there any option to change axis range in cabinetry.visualize.data_mc, especially for the ratio plot? I am creating plots by cabinetry.visualize.data_mc, and then main distribution and data/MC ratio plot are plotted. The default y-axis raige seems [0.5, 1.5], is it possible to change the range e.g. [0.75, 1.25] or is it necessary to keep plots and modify by hand as smilar as #425? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is no option for this, but this is straightforward to do externally. Given some list figs[0]["figure"].axes[1].set_ylim([0.9,1.1])
figs[0]["figure"].savefig("figure_name.pdf") where the |
Beta Was this translation helpful? Give feedback.
There is no option for this, but this is straightforward to do externally. Given some list
figs
returned fromvisualize.data_mc
, you can change the range for a specific figure via something likewhere the
[1]
selects the ratio panel. You might also want to useset_yticks
/set_yticklabels
to update ticks and tick labels in this case.