>>>>> "Rodrigues," == Rodrigues, Joseph <[EMAIL PROTECTED]> writes:
Rodrigues> Yes, I am plotting two lines and am using two plots,
Rodrigues> the two lines plots just fine in different colors,
Rodrigues> however, one line is continuous from 1983 - 1995 and
Rodrigues> the other dataset has irregular data points along the
Rodrigues> same period of time. So I should see a continuous
Rodrigues> line for the first data set and I should see a broken
Rodrigues> line only where there is data for the second.
Rodrigues> Matplotlib is joining the broken points and forces
Rodrigues> both datasets to appear as continuous.
matplotlib doesn't make any assumptions about whether data is
continuous or not. It only knows about points and line styles. If
you want a set of points to be connected, use a linestyle like '-'
(solid line) or '--' (dashed line)
plot(x, y, '-')
if you don't want the points to be connected, use a marker like 'o'
for circles and 's' for squares
plot(x, y, 's')
You will need to extract the subsets of the data that you want
connected yourself.
JDH
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users