Discussion:
[Matplotlib-users] plotting two graphs, overlay not defined for all x
peter
2015-05-30 19:10:38 UTC
Permalink
hi,


ive got a graph which should be overlayed with something, but the
overlay graph isnt defined for all x
values.

for example, overlay goes from x=1 to 1=10, then pauses for 100 and then
continues with 10 values.
how do you do that?


greetings

------------------------------------------------------------------------------
Joy merwin monteiro
2015-05-31 00:48:14 UTC
Permalink
You could define the overlay data for the whole length and mask out the
irrelevant part using numpy.ma.

You could also just plot the two parts separately using the appropriate
length of the x coordinate.

Xa = range (1,10)
Xb = range (100, 110)
plot (Xa, data1)
plot (Xb, data2)
Post by peter
hi,
ive got a graph which should be overlayed with something, but the
overlay graph isnt defined for all x
values.
for example, overlay goes from x=1 to 1=10, then pauses for 100 and then
continues with 10 values.
how do you do that?
greetings
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...