Inconvenient labels position in stackplot

A place to report and discuss potential bugs
Post Reply
katarkon
Local Expert
Posts: 193
Joined: Mon Jan 12, 2015 4:01 am

Inconvenient labels position in stackplot

Post by katarkon »

Changing of step parameter in stackplot function from 1 leads to squizing of the axis with labels. Their position does not corresponds to the spectra more. This makes labeling feature almost useless. The pictures illustrate the problem in detail.
Attachments
step=0.3
step=0.3
step03.png (5.65 KiB) Viewed 8024 times
step=0.5
step=0.5
step05.png (5.46 KiB) Viewed 8024 times
step=1
step=1
step1.png (5.09 KiB) Viewed 8024 times
Stefan Stoll
EasySpin Creator
Posts: 1108
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Inconvenient labels position in stackplot

Post by Stefan Stoll »

I agree, stackplot is not useful in this case. This calls for a complete redesign of the function, including various scaling, alignment, and labeling options. We will open an issue and work on it. Thanks for the observation.
HarryD95
Newbie
Posts: 5
Joined: Sat Jan 16, 2021 8:23 am

Re: Inconvenient labels position in stackplot

Post by HarryD95 »

x/y labels and their range/step size can be manually specified using the set function:

Code: Select all

 figure
 set(gca,'XTick',3395:10:3475,'YTick',[0.5:1:5.5]); 
Post Reply