Skip to content

Change axis range of the plot #457

Discussion options

You must be logged in to vote

There is no option for this, but this is straightforward to do externally. Given some list figs returned from visualize.data_mc, you can change the range for a specific figure via something like

figs[0]["figure"].axes[1].set_ylim([0.9,1.1])
figs[0]["figure"].savefig("figure_name.pdf")

where the [1] selects the ratio panel. You might also want to use set_yticks / set_yticklabels to update ticks and tick labels in this case.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tomoya-Iizawa
Comment options

Answer selected by Tomoya-Iizawa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants