While I can hack together code to draw an XY plot, I want some additional stuff:
- Vertical lines that extend from the X axis to a specified distance upward
- text to annotate that point, proximity is a must (see the red text)
- the graph to be self-contained image: a 800-long sequence should occupy 800 pixels in width (I want it to align with a particular image as it is an intensity plot)

How do I make such a graph in mathplotlib?
You can do it like this:
Note, that somewhat strangely the
yminandymaxvalues run from0 to 1, so require normalising to the axisEDIT: The OP has modified the code to make it more OO: