Trying to read from a text file to generate a graph

Steve Gronicus at SGA.Ninja
Wed Jul 28 02:55:43 EDT 2021


I am going though a struggle with this and just don't see where it fails.
I am using the Dual Bar Graph.py program from https://matplotlib.org/stable/gallery/index.html website.
The file from the web site works so that shows that all my installations are complete.

My program, LibreGraphics 05.py program runs but the graph is all smutched up.  I am pulling data from the EXCEL-FILE.txt into the program, selecting three values for each line and creating three variables formatted as is shown in the original demo file.

When you run the program, choose 112 when prompted. You will see the values of the variables I want to pass to the graph section of the code.  If the values are hardcoded, the graphs look good.  When the variables generated by my section of the code, it does not. 

I am not sure what more to explain.
Please help me....
Steve

I am attaching a zip file.  I hope it gets through.





 George Melly remarked to Mike Jagger on how lined his face was for one so young. Jagger replied “They’re laughter lines George” to which Melly countered: “Mick, nothing’s that f**king funny!”.



More information about the Python-list mailing list