T O P I C R E V I E W |
gijse |
Posted - 01/04/2008 : 07:19:29 AM Origin Version (Select Help-->About Origin): 7.5 Operating System: winxp
I would like to position my axis titles at a certain position with respect to the corresponding layer frame. For example, I want the y-axis title always centered (vertically) next to the layer frame, with a specific horizontal offset with respect to the y-axis.
I can move the titles manually, but I did not find a way to position all titles (for example in a stacked graph) automatically (and precisely). Manually it is very hard to align the titles of the stacked graphs and to obtain the same offsets in different graph windows.
Ideally this position setting should be included in a Theme so that I can easily apply it to all my graphs. |
11 L A T E S T R E P L I E S (Newest First) |
DerPionier |
Posted - 06/07/2011 : 03:24:24 AM Hi and thanks for your help,
quote: Originally posted by easwar The theme mechanism currently does not have option for settings such as aligning to center, and positioning specific units away from axes etc. So either you have to use templates, or use theme for other settings and then apply script to adjust positioning of your labels. We will consider supporting better alignment in theme for future versions.
But there are options like "alignment of labels", "position of label" etc. on the design preferences. Changing this options also changes something at the labels. It is just not clear what exactly it does.
Is the position of the axis labels at the templates defined exactly? So by using Templates, can I be sure that the axis label is always positioned at the same spot?
By applying a script you mean a Labtalk script, rigth? Is there any "HowTo align axis labels with LabTalk" help?
quote: Originally posted by easwar Regarding your comment about font size, if you scale the layer (shrink or expand layer size), that by default changes the font display size. In newer versions, when you click on a text object, the status bar shows the original font size and the changed font size, such as: Text: size(actual) = 31(18.6)
Ah! That was really helpful, thanks. The behaviour of changing font sizes was driving me crazy.... |
easwar |
Posted - 06/06/2011 : 11:39:19 AM Hi,
The theme mechanism currently does not have option for settings such as aligning to center, and positioning specific units away from axes etc. So either you have to use templates, or use theme for other settings and then apply script to adjust positioning of your labels. We will consider supporting better alignment in theme for future versions.
Regarding your comment about font size, if you scale the layer (shrink or expand layer size), that by default changes the font display size. In newer versions, when you click on a text object, the status bar shows the original font size and the changed font size, such as: Text: size(actual) = 31(18.6)
You can set the fonts to be fixed. so they don't scale with layer, using controls in the Plot Details Display tab for the layer: http://originlab.com/www/helponline/Origin/en/UserGuide/The_%28Plot_Details%29_Display_Tab.html See the Scale Elements group.
Easwar OriginLab
|
DerPionier |
Posted - 06/06/2011 : 04:19:45 AM quote: Originally posted by easwar So basically multiple objects including layers and text labels can be selected by Shift-click and then aligned using buttons in the Object Edit toolbar.
Hi,
thanks but I already know this. I am talking about aligning the axis label by using the design manager.
As I said I want to have 1 design theme that I can use for every graph and be sure that all graphs look the same when I apply this design theme.
This dos not work at all. Neither the aligning on the center nor the option "position the label x cm away from the axis".
Furthermore, even the sizes of the axis labels are, for some reason that I donīt understand, not of the same size.
Iīve attached 2 eps graphs that were made with the same design theme. You can see that the font size and position is different. Even though the font size that was chosen in Origin is the same. How is that possible? And, most important, how can I get rid of this?
Files: http://www.filedropper.com/xrdspectrum http://www.filedropper.com/vprtargetdicke |
easwar |
Posted - 06/01/2011 : 2:09:15 PM Hi,
In the latest version, aligning axis title with the layer, is supported.
You can follow these steps: 1> Hold CTRL key down and click inside layer - this will select entire layer (you can also just click inside layer in an area where there is no data, to select the layer) 2> Hold Shift key down and click and select the axis title 3> Click on the "Vertical" alignment button, which is 5th button, in the Object Edit toolbar, which is docked by default at bottom of the application window.
So basically multiple objects including layers and text labels can be selected by Shift-click and then aligned using buttons in the Object Edit toolbar.
Easwar OriginLab |
DerPionier |
Posted - 06/01/2011 : 09:41:38 AM quote: Originally posted by gijse After initially thinking that these suggestions solved all my problems I am still struggling to simply get the axis titles aligned. (by the way, I switched to orginlab 8 now)
- Vertical alignment with the Theme-method does not work. Somehow the title is positioned somewhat below the center of the corresponding layer frame instead of exactly ON the center.
Iīve encountered the same problem. I cannot get the design thems to exactly center the axis labels on the graph.
Have you found a way to do this properly? Iīm quite frustrated at the moment......
quote: Originally posted by gijse I am quite suprised that such a simple and evident functionality as aligning the titles seems to lack in origin. What you want is of course a way to put the baseline text of all titles in one line, regardless of sub/supersript and regardless of the format you use for the numbers next to the axis. Please tell me there is a solution to this!
I totally agree. I donīt understand how a software that is supposed to produce good-looking graphs is lacking such a feature.... |
greg |
Posted - 01/14/2008 : 2:51:49 PM Centering text along the axis can be accomplished by setting the Y to: (Y1+Y2)/2 or the X to: (X1+X2)/2 For example: YL.Y = (y1 + y2) / 2; XB.X = (x1 + x2) / 2;
Aligning objects along the baseline is currently not possible unless you apply you super/sub script formatting AFTER aligning your text.
|
easwar |
Posted - 01/14/2008 : 09:31:55 AM Hi,
Apologies for the late posting...you are correct. If there are super-subscripts the object toolbar does not seem to align the text with matching baseline position. We need to look into this to see if there is a workaroud.
In the mean time, if this is a graph that you make repeatedly (with same titles and same layer configuration etc) you could do the alignment manually and save the graph as a template for repeated use.
Easwar OriginLab
|
gijse |
Posted - 01/09/2008 : 11:52:05 AM After initially thinking that these suggestions solved all my problems I am still struggling to simply get the axis titles aligned. (by the way, I switched to orginlab 8 now)
- Vertical alignment with the Theme-method does not work. Somehow the title is positioned somewhat below the center of the corresponding layer frame instead of exactly ON the center.
- The solution with the Theme seems to horizontally align the title with respect to the numbers next to the axis. So if I use more digits for the axis numbers for one graph in the stack than for the other, the axis titles are not aligned, making it look ugly. Apart from a different amount of digits, the problem also occurs when you want to use different displays (e.g. scientific/decimal/engineering) in each graph. How to solve this? Of course I want the titles on one line, independent of the numbers that are used next to the axis
- The titles often contain subscript/superscript text (due to mentioning of units etc). Somehow the program cannot handle this properly. If I have on one of the stacked layers a title WITH subscript and on one of the other layers a title WITHOUT subscript the titles are not aligned properly. Maybe they are aligned with respect to the absolute center of the titles, but you want of course that the baseline text is aligned from title to title. Addition of e.g. subscript to one of the titles makes it shift, resulting in unaligned baseline text with the other titles and the result looking again VERY ugly.
- The solution with the object edit toolbar does for the same reason not work. Besides the sub/superscript problem, the alignment even depends on which specific letters occur in each title.
I am quite suprised that such a simple and evident functionality as aligning the titles seems to lack in origin. What you want is of course a way to put the baseline text of all titles in one line, regardless of sub/supersript and regardless of the format you use for the numbers next to the axis. Please tell me there is a solution to this!
|
gijse |
Posted - 01/09/2008 : 04:27:28 AM Thank you, that helps a lot ! |
easwar |
Posted - 01/04/2008 : 4:29:28 PM Hi,
One related note... If you have multiple labels such as say multiple y titles on stacked layers, from GUI, you can also hold shift key and click on the labels one by one to select the ones you want, and then in the Object Edit toolbar (not on by default, you can turn on from View|toolbar menu) there are buttons to align the objects to match their position etc. And once aligned and still in selected mode, you can move them all using arrrow keys or mouse...just another option from GUI which allows flexible, if not precise, positioning.
Easwar OriginLab
|
easwar |
Posted - 01/04/2008 : 3:31:59 PM Hi,
This property is available in the graph theme...and one can start from the theme and pare the theme down (by deleting "unwanted" branches) to save only the part one wants...
Try this theme: http://www.originlab.com/ftp/forum_and_kbase/files/AxesTitleLocation.zip
1> download and unzip and you will get "Axes Title Location.OTH" 2> save that to \Themes subfolder under your UFF (if subfolder does not exist, just create one by that name and put it there...you could also put under \themes subfolder under EXE path if you have write previleges there...) 3> with graph active, open Format->theme Gallery and you should see the theme and can select and click Apply Now button.
If you right click on the theme in Theme Gallery, you can select edit and look at the contents. I have set x offset of Y title to -10. The number is % of font size. You could adjust the number and resave...and it will apply to all layers...of course if each layer's font size is different, then they will offset by different amounts...for more control one could possibly write Origin C code. Maybe you can try this theme first...
Easwar OriginLab
|
|
|