Re: [Matplotlib-users] trying to get screen coordinates for bars

2007-02-25 Thread Matt Auger
The trick is that you want the image coordinates in *screen* coordinates, not printer coordinates. The image coordinates will be screen coordinates if you obtain the imgheight/imgwidth by multipying the figure height/width by 80, not 100. The DPI won't matter if you are manually setting the height

[Matplotlib-users] trying to get screen coordinates for bars

2007-02-23 Thread Rajarshi Guha
Hi, I'm trying to generate a barplot and subsequently dumping it to a PNG file and making an HTML imagemap out of it. I've pasted my code below. The problem is that the coordinates I need to supply for the imagemap don't seem to be correct. I'm getting the screen coordinates using: coords = [] f