|
From: Francesco M. <fra...@gm...> - 2013-04-07 20:21:02
|
Il giorno 07/apr/2013 21:03, "Kevin Hunter Kesling" <kmh...@nc...> ha scritto: > > At 2:34pm -0400 Sun, 07 Apr 2013, Francesco Montesano wrote: >> >> 2013/4/7 Kevin Hunter Kesling >> >>> I'm looking for a way to represent on an X-Y graph the fact that an axis >>> does not start from the origin. When drawing by hand, I'll use a little >>> zig-zag, lightning bolt, or slight space on the axis in question to >>> represent this fact, just off from where the X and Y axis lines meet. >>> How would I go about telling Matplotlib to do this? After two hours of >>> perusing the Axes documentation, and tooling around in an IPython shell, >>> I appear to be striking out. >>> >>> If you are using a monospaced font to view this email, this may >>> illustrate the functionality for which I'm looking: >>> >>> 150 || * * >>> 145 || * * >>> 140 || * * >>> 135 || * >>> 130 || >>> / >>> / <---- "zig zag" I want >>> || >>> 0 -------------------------------- >>> 0 1 2 3 4 5 6 7 8 > > >> Have you given a look at this example: >> http://matplotlib.org/examples/pylab_examples/broken_axis.html > > > Damn, I clearly missed that one. And once I know what I'm looking for, my eye goes right to it. Sorry for the noise. > > On the other hand, I'm still such a noob at Matplotlib ... is there a way to have one of the subplots take up more than its default 50% allotment? > > Thanks, > > Kevin hi Kevin, you can give a look at the last two plots in this example http://matplotlib.org/examples/pylab_examples/demo_tight_layout.html or use plot.axes providing the rectangle that you want fra |