Newb: can I plot() just once but render/save to disk different "zooms"?

Hi,

I just emigrated from Ploticus last week :slight_smile: Am working on a project where
I'm plotting the contents of a large .csv file with about 250,000 cells
(unix system 5-minute load averages from a set of 50 servers, for about
three weeks data now).

I'm developing this in Spyder/Python(x,y)--completely unknown to me until
last week--and the pan/zoom capability makes me wish/wonder two things:

1: I wish I could interactively save the zoomed view to disk, and

2: This behavior hints at the possiblity of a better way to go back
and plot 15 1-day views of the original plot, than slicing up the
source array and re-plotting.

I'm .. so new to matplotlib/numpy that I'm sure I'm missing some
key concepts/terminology that, once identified, will let me find my
way to what I need to know. For example, I'm terribly confused right
now by Axes.get_axes().

Which classes/methods/examples/gallery examples should I look at?

Thanks.

Once you have an axes object, you can call set_xlim() and set_ylim() on it to change the limits of the x- and y- axes respectively. You should be able to call that and savefig() iteratively to produce plots of different subsets of the same data.

Let me know if you need more details,
Mike

···

On 02/05/2010 01:08 AM, David Carmean wrote:

Hi,

I just emigrated from Ploticus last week :slight_smile: Am working on a project where
I'm plotting the contents of a large .csv file with about 250,000 cells
(unix system 5-minute load averages from a set of 50 servers, for about
three weeks data now).

I'm developing this in Spyder/Python(x,y)--completely unknown to me until
last week--and the pan/zoom capability makes me wish/wonder two things:

1: I wish I could interactively save the zoomed view to disk, and

2: This behavior hints at the possiblity of a better way to go back
and plot 15 1-day views of the original plot, than slicing up the
source array and re-plotting.

I'm .. so new to matplotlib/numpy that I'm sure I'm missing some
key concepts/terminology that, once identified, will let me find my
way to what I need to know. For example, I'm terribly confused right
now by Axes.get_axes().

Which classes/methods/examples/gallery examples should I look at?

Thanks.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users