To start, I know it’s not possible to have alphanumerical axis for graphs. I’ve based my code off the previous posts asking this but they aren’t that clear.
Here’s the abstract problem:
I have a vector of strings and a vector of doubles. How can I make a graph or something that looks like a graph? Should I just make a histogram and pretend it’s a graph? Should I overlay a histogram with the strings as bins onto a graph while deleting the graph’s x axis? Bonus points: red markers for the values, with not line connecting them.
_ROOT Version:_6.18/04 Platform: Windows Compiler: Not Provided
But not both in one canvas/one run of the macro. If I put any option in the histogram’s Draw(), the graph stays, and if I pass no options to the histogram’s Draw(), the histogram is drawn as in the second image. I’ve tried Draw(“SAME”)
I’ve changed my arrays to double instead of Double_t. Because I’m bringing in stuff from vectors, I’m filling the arrays with a for loop. Still a blank canvas.
Some code I can run to test what you are doing. The macro I sent you works when used I instructed. You are surely using it in some other way. I need to see (and try) what you do.
Link
Note the col global variable at the top of the macro, and the path you need to change in the macro’s list_files function. The main function is at the bottom and the relevant functions to this bug are near the bottom. I’ve thrown your macro in but it’s not working. I’m going to check the arrays real quick.