[Tutor] Plotting multiple lines on one graph with same X values

Dennis Lee Bieber wlfraed at ix.netcom.com
Thu Dec 9 19:29:55 EST 2021


On Thu, 9 Dec 2021 10:28:13 -0500, Anthony Cianci <acianci15 at gmail.com>
declaimed the following:

>Hello,
>
>I am looking to plot multiple lines (1,000+) from an excel file.
>I am new to Python and have figured out how to graph one dataframe using
>pandas, but I am not sure how to include the rest of the data without
>writing a new line of code for each "tag".
>[image: image.png]
>

	Text attachments only on this forum -- anything else gets stripped.

	If you must reference an image, you will have to find some image
hosting provider, and include URLs to the images one that provider. I
recommend you do not use a provider that creates cryptic URLs -- I, for
one, will not click on any URL that does not have a definable target (eg:
.../image1.png is okay,  .../8374917ds87374lf could be anything including
trojans and will not be clicked).

	As for your subject -- does matplotlib have anything that may help?
Otherwise you may be down to scripting something that extracts the "tags",
and loops over them executing a suitable plot call.


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/



More information about the Tutor mailing list