Il giorno 07/apr/2013 21:03, "Kevin Hunter Kesling" <kmhun...@ncsu.edu> 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
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users