Author |
Topic |
|
Stefan B
Germany
10 Posts |
Posted - 11/24/2016 : 1:06:37 PM
|
Hi,
I still keep scripting. Today i found another problem. I am plotting watterfall 3d graph using the following script:
plotxy iy:=(1,2:55) plot:=210 ogl:=<new template:=glWater3D>;
set %C -LGCB 0;
I want to delete axis Z title, but i cannot check what is the label name. I cant rename axis x and y (from string) beacause of the same reason.
i tried to use label -r command but every name i used seemed to be wrong. How to solve this ?
Regards, Stefan Batory
Stefan B. |
|
yuki_wu
896 Posts |
Posted - 11/25/2016 : 01:20:22 AM
|
Hi Stefan,
Generally, we specify axis title by: xb: the bottom X axis title xt: the top X axis title yl: the left Y axis title yr: the right Y axis title zb: the back Z axis title zf: the front Z axis title
So if you want to delete the bottom X axis title:
label –r xb; If you want to create a new or reset the existing bottom X axis title:
label –xb NewXAxisTitle; Hope it helps.
Regards, Yuki OriginLab
|
|
|
Stefan B
Germany
10 Posts |
Posted - 11/26/2016 : 1:30:48 PM
|
Hi Yuki,
I tried commands you mentioned before.
However, axis titles aren't visible on labels list:
i used list -o command to check this. The results are here :
1 3 __BCO2, 0x0fae3b18
2 7* _204, 0x0fae3c68
I couldn't check labels names by programming control either.
only legend label was available, but i deleted it. :
I can format the axis, but i wanted to change the titles as well.
EDIT i had an idea to hide all text labels (layer.showLabel=0;), add new empty layer then create new text labels on it and finally - make them axis titles. But it's impossible to add new empty label on this kind of graph...
I want to fix this problem any possible way.
Regards,
Stefan B. |
Edited by - Stefan B on 11/26/2016 5:06:06 PM |
|
|
yuki_wu
896 Posts |
Posted - 11/28/2016 : 02:07:19 AM
|
Hi Stefan,
I am sorry what I mentioned above is only available for 2D graph. For 3D graph, you can use the following command to delete the title:
label3D –r xb; If you want to edit the title, you can rewrite the text of title directly. For example:
xb.text$=AAA; Please note that xb means the bottom X axis title. Get the other title names by:
list –o gl;
Regards, Yuki OriginLab
|
Edited by - yuki_wu on 11/28/2016 02:10:16 AM |
|
|
Stefan B
Germany
10 Posts |
Posted - 11/28/2016 : 09:48:37 AM
|
hi yuki, u are my hero.
one last thing,i know how to draw lines,but is it possible to draw an arrow (i want to indicate the direction of growth under one of the axis) regards
Stefan B. |
|
|
yuki_wu
896 Posts |
Posted - 11/28/2016 : 10:02:12 PM
|
Hi Stefan,
Great to hear that the first problem was solved.
If you want to draw an arrow, you should specify the properties of your line object directly. For example:
win -t plot; //Create a graph window
GObject myLine = line1; // Declare a GObject named myLine attached to 'line1'
draw -n myLine -lm {1,2,3,4}; //Create the line object
myLine.arrowBeginShape=2; // Specify the shape of beginning arrow heads
More properties can be found here: http://www.originlab.com/doc/LabTalk/ref/Graphic-objs
Hope it helps.
Regards, Yuki OriginLab
|
|
|
Stefan B
Germany
10 Posts |
Posted - 12/03/2016 : 09:00:07 AM
|
Hi Yuki,
I know how to draw the line and change the properties, but i cannot do this in the active window of the 3D graph i mentioned in this topic.
When i use the draw command to create any kind of line, nothing happens.
Kind Regards,
Stefan B. |
|
|
yuki_wu
896 Posts |
Posted - 12/05/2016 : 01:40:16 AM
|
Hi Stefan,
In fact, 3D objects are not quite ready in Origin 2017 and older version.
We can draw a 3D line in 3D graph now. For example:
draw3D -n myLine -lm {10,20,0,30,40,0}; //(10, 20, 0) is the first point while (30, 40, 0) is the second point
However, we cannot change its properties for now.
Sorry for the inconvenience. Hope you keep an eye out for future release and its new features.
Regards, Yuki OriginLab
|
|
|
Stefan B
Germany
10 Posts |
Posted - 12/11/2016 : 1:11:18 PM
|
Hi,
I am using layer -r command to revert the order of curves on graph (picture is in the 1st post ) and strange thing happens.
When i just add this command to my script , the order is changed, but it also change the color of the curves (black). I want my curves color scheme to be intact (same as in the picture in 1t post)
plotxy iy:=(1,2:10) plot:=210 ogl:=<new template:=glWater3D>;
set %C -LGCB 0;
layer -r; // reverts the order but change the colour scheme
When i use layer -r in the command window, when my graph is already created the order is changed and the colour scheme is the same like before (what i want to achieve).
How is this possible ?
ANSWER The reasons are unknown for me. But my experience said " when something in labtalk doesn't work, try delay". So i tried.
sec -p 1; // this command simply fix the colour scheme issue.
Regards
Stefan B. |
Edited by - Stefan B on 12/12/2016 6:03:47 PM |
|
|
|
Topic |
|
|
|