Creating a BarGraph with lables for each bar using macros

Beta releases, announcements and anything else that doesn't fit below. Please read the <B>Welcome</B> topic.

Moderator: DPlotAdmin

Post Reply
pinkstaffp
Posts: 3
Joined: Wed Nov 26, 2008 12:56 pm
Location: Lovinia, MI 48154
Contact:

Creating a BarGraph with lables for each bar using macros

Post 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
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
pinkstaffp
Posts: 3
Joined: Wed Nov 26, 2008 12:56 pm
Location: Lovinia, MI 48154
Contact:

XYlabel command is correct for me but,

Post 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.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Scale(9)
Visualize Your Data
support@dplot.com
Post Reply