Plot a selected range of co-ordinates using x-aaray

I am trying to plot from a 3-D data grid. For example:

data10.isel(z=76,x=256).plot(ax=ax1)

gives the following output: Plot1

I would like to plot just the top part of this plot so that it is easier to compare multiple curves. I know we can do it by using:

ax1.margins(-0.45,0.09)

but each time I am having to guess/trial the numbers in the bracket to zoom into the right position. Is there a way I can set the range of co-ordinates for the data that I want to be displayed on the plot?

Thanks!

Edit: How to add legends when plotting multiple curves?



from Recent Questions - Stack Overflow https://ift.tt/2KRCFlI
https://ift.tt/36aierm

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)