How does the area devoted to the x/y axes and their labels figure into this?
Doesn’t this assume that 100% of the pane is devoted to chart data?
Joseph Biran
____________________________________________
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Herman
Sent: Saturday, March 01, 2008 11:56 AM
To: Jerry Gress
Subject: Re: [amibroker] convert Prices coordinates to Pixel coordinates
Thank you! that will do. I wonder however how GraphxSpace = figures in this. I'll have to test it.
thanks again!
herman
For tips on developing Real-Time Auto-Trading systems visit:
http://www.amibroker.org/userkb/
Saturday, March 1, 2008, 2:05:20 PM, you wrote:
> I do not know what message number it the below was so just copied it from my
> favorites under low level graphics.
> Begin:
> Patrick,
> No, it is not on to-do list.
> Low-level graphics uses pixels because it is natural co-ordinate system on
> the computer.
> You can easily transform from your "values" to pixels using linear
> transformation:
> MinY = ...your minimum y
> MaxY = ...your maximum Y
> MinX = ...your minimum X
> MaxX = ...your maximum X
> function GetPixelY( value )
> {
> global MinY;
> global MaxY;
> return Status("pxheight") * ( value - MinY ) / (MaxY - MinY); }
> function GetPixelX( value )
> {
> global MinX;
> global MaxX;
> return Status("pxwidth") * ( value - MinX ) / (MaxX - MinX); }
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "vlanschot" <vlanschot@xxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, October 07, 2007 12:55 PM
> Subject: [amibroker] Re: Looking for Gfx XY Charting template
>> Herman, sorry that this won't help you, but I think many people, like
>> myself who've experimented with the custom charting functions, are
>> waiting for TJ to upgrade this functionality to chart along specified
>> values of the variables, instead of (currently the non-intuitive)
>> screen pixels. My guess is that this is why you see so few Gfx
>> examples, whereas potentially it's such a great tool. Fortunately,
>> unless I'm misinformed, this is on TJ's "to-do" list (along with
>> 15000000000000 other enhancements ;-)).
>> PS
> End:
> Jerry Gress
> Stockton, Ca.
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
> Of Herman
> Sent: Saturday, March 01, 2008 10:51 AM
> To: AmiBroker User Group
> Subject: [amibroker] convert Prices coordinates to Pixel coordinates
> Hello,
> I remember seeing an example to convert Prices coordinates to Pixel
> coordinates, but i can't find it.
> Would anyone remember how to do it?
> Many thanks!
> herman
>
> Please note that this group is for discussion between users only.
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
> <*> Your email settings:
> Individual Email | Traditional
> <*> To change settings online go to:
> http://groups.yahoo.com/group/amibroker/join
> (Yahoo! ID required)
> <*> To change settings via email:
> mailto:amibroker-digest@xxxxxxxxxxxxxxx
> mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
> <*> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
|