|
| [WD17] Build an audiology graphic |
| Iniciado por guest, 15,feb. 2015 23:14 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 15,febrero 2015 - 23:14 |
Hello to All
I've been able to reproduce the graphic posted in my previous thread. Now i need an advice.
Once the line is drawn, how to draw a little circle around the point drawn? like my picture in previous thread - see: <a class="ExternalLink" rel="nofollow" target="_blank" href="http://27130.foren.mysnip.de/read.php?27131,517534">http://27130.foren.mysnip.de/read.php…</a>
As you can see in the example, around each point a circle (red) or a "X" (blue) is drawn.
What i want to retrieve is the X/Y coordinates of that point, then using them draw a circle (or X: how to draw an "X"???).
I read in the online help, that "grInfoPoint" and "grInfoXY" are available, but i have no idea on how to use them and if one of these function do the trick.
Tips and tricks are welcome.. Thanks in advance.
Gianni |
| |
| |
| | | |
|
| | |
| |
| Publicado el 16,febrero 2015 - 14:45 |
Hi Gianni,
See my post on your previous message. Also, you can't draw in a graph, but you can draw a graph in an image control. So if both are of the same size, I guess you can call grInfoPoint() from the graph, translate the coordinates (if needed) to equivalent positions in your bitmap and draw over. This would do the job. Then you display the bitmap instead of the graph.
For your axis orientation (having the positive values toward the bottom, use grOrientation(GR_,grXCoordinate,grAtRight,grAtBottom). Then you can also specify the min and max values of the graph to not have a -10 at the top. (See grOrigin() and maybe grGraduate() for more control.)
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 16,febrero 2015 - 17:53 |
Hello Alexandre
Thank for your friendly help.
Gianni |
| |
| |
| | | |
|
| | | | |
| | |
|