Page 1 of 1

Creating a BarGraph with lables for each bar using macros

Posted: Wed Sep 30, 2009 11:45 pm
by pinkstaffp
After a lot of looging, trial and error, I finally hit on this simple macro which gave me an X Y plot of my data.

Macro statements:

FileNew()

Directory("F:\3OSs_02\coord_and_graphs.dir")

FileOpen("ben_3OSs_02_xw4600_xP_Vista_0817_20090922_1140.csv")

If you go to http://paulpinkstaff.com/Dplot_BarGraph/ you can view all my data including an image of the XY plot.

My question is can a BarGraph be created with macro commands this way. I am beginning to think I need to take a different approach. I have noticed some text in the documentation that leads me to think a different type of input, with additional data, like the column lables could trigger the BarGraph.

Paul Pinkstaff
734-223-6558
pinkstaffp@acm.org

Posted: Thu Oct 01, 2009 9:01 am
by DPlotAdmin
Where do you want the labels? Along the X axis, or at/near the top of each bar? If the former you'll want to use the XYLabel command (and probably set the number format for the X axis to "None" using [NumberFormat(0,12)].

If the latter you'll want to use TextPointLabel.

XYlabel command is correct for me but,

Posted: Thu Oct 01, 2009 9:59 am
by pinkstaffp
what command do I use to the the XY Plot to turn into a BarGraph. After the third line in my macro I have this graph:
http://72.22.89.232/Dplot_BarGraph/Test ... 0_0012.png, and I think it needs to be a BarGraph at this point before I start to use XYlabel command.

Posted: Thu Oct 01, 2009 10:47 am
by DPlotAdmin
Scale(9)