quote:
Originally posted by jasonzhao
Hello,
The following Labtalk Script can be used to remove the element of the X axis;
layer.x.showAxes=0; //remove X axis
layer.x.showLabels=0; //remove ticks label
label -r XB; //remove title
Best regards!
Jason
OriginLab Technical Service
Hi Jason,
Thanks for that block of code it was helpful. However, what I would like to do is have each row in my worksheet be represented by its own column in the graph. When I add the worksheet to a new DataRange and then add the DataRange to the graphlayer with AddPlot It is not adding the correct number of columns to the graph. I have 6 rows that I want to be represented by 6 columns and the last cell in each row will be the value of the column. However, when I create the graph I'm getting various number of columns.
Code:
gdata = PyOrigin.NewDataRange()
gdata.Add('X', predict, 0, -1, x) # x is last column index of sheet
graph = PyOrigin.CreatePage(3, "Graph", "Graph", 1)
PyOrigin.FindGraphLayer("Graph").AddPlot(gdata, 203)
I have a screenshot but it will not let me post right now due to the following error "An error happened during the request for the page: http://www.originlab.com/www/support/forum_image_upload.aspx
Please try again later. If this problem persists, please contact webmaster@originlab.com."
I will try to edit this post as soon as possible when I can upload the screenshot.