Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
jdf726
Posted - 02/11/2019 : 7:01:51 PM Origin Ver. and Service Release (Select Help-->About Origin): Operating System:
I have a bit of a label clash problem with a colour scale in a contour plot. This should show only the end values of the colour scale.
Normally I have this under control by setting just one major level and ~100 minor levels to give a smooth colour transition and only the end labels appear.
The trouble is, if I want to actually activate contour lines in my plot at some intermediate resolution (say ~ 10 levels) then all of these labels appear on the color bar.
The 'color bar style' dialog enables you to set the labels manually (in my case 'Levels...Custom levels...Major ticks..By Count = 2), but I want to do this programmatically.
I am pretty sure that this dialog has been upgraded in 2018...but while it has a 'hide head and tail levels' button it does not have the opposite, which is what I want. https://www.originlab.com/doc/Origin-Help/ColorScale
I had a look to see whether you can access this in OriginC, looking at the tree stucture described in here https://www.originlab.com/doc/OriginC/guide/Customizing-Data-Plots I extracted the tree info as per the suggestions (see below) but I don't think this includes the settings for the scale bar, only the plot itself.
Posted - 02/11/2019 : 7:19:24 PM Aha...I deleted my color bar and re-added it from the menu while holding Shift and Control. THat took me to the code which reminded me that this object is called 'Spectrum1'. I googled that and found this page.
I think there is a setting in here 'Spectrum1.labels.autodisp' that enables you to disconnect the colour bar settings from the ones in the main plot, including the labels.