Rank: 1449 based on 54 downloads (last 30 days) and 2 files submitted
photo

Friedhelm Steinhilber

E-mail
Company/University
Eawag Dübendorf / Switzerland
Lat/Long
47.40361022949219, 8.608285903930664

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Friedhelm View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Jun 2010 Screenshot addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber add axis, subplot, plotting, plotyy, second y axis, multiple axes 18 7
  • 3.66667
3.7 | 4 ratings
07 May 2010 Screenshot Myplotyy Myplotyy plots different data sets with a common x-axis but using individual y-axes in one figure. Author: Friedhelm Steinhilber add axis, confidence intervals, time series, plotyy, plotting, second y axis 36 0
Comments and Ratings by Friedhelm View all
Updated File Comments Rating
02 Jun 2010 addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber

Answer to Brad Stiritz: Thanks for this remark. In the newest version (date 2/6/2010), the string format of the ticks for the second y-axis can be controlled by using the optional fifth argument when calling the function addaxis_unit.

17 Mar 2010 addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber

Answer to Brad Stirlitz: I updated the function, allowing to use the same ticks as on the first y-axis.

15 Mar 2010 addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber

Answer to Claudio Gelmi: plotyy plots two datasets into one figure. This function here plots one dataset with two different units.

Comments and Ratings on Friedhelm's Files View all
Updated File Comment by Comments Rating
09 Aug 2010 addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber Stiritz, Brad

Hi Friedhelm, thanks for all the function updates. I really appreciate your responsiveness & openness. I wanted to let you know about a new possible issue. After the chart is rendered, the user should be able to select a plotted point & add an annotation using the Data Cursor tool, right? This isn't working for me after I run the addaxis_unit function. Could you please take a look? Thanks, Brad

02 Jun 2010 addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber Steinhilber, Friedhelm

Answer to Brad Stiritz: Thanks for this remark. In the newest version (date 2/6/2010), the string format of the ticks for the second y-axis can be controlled by using the optional fifth argument when calling the function addaxis_unit.

31 May 2010 addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber Stiritz, Brad

Hi Friedhelm, thank you for updating the function per my previous request. I was hoping to be able to control the string formatting when the 'y1' ticks2unit option is specified. It appears that the formatting could be specified by modifying the num2str() calls in lines 146 & 175, a la:

set(hAxes(2),'yticklabel',num2str(ticks2unit,'%4.2f'))

This hack works as long as the figure is *not* resized. For some reason, my modification fails during resizing with the error:

??? Error using ==> set
Invalid parameter/value pair arguments

Error in ==> addaxis_unit>addaxis_unit_resizefcn at 175
        set(HAXES(i+1),'yticklabel',num2str(ticks2unit),'%4.2f')
 
??? Error while evaluating figure ResizeFcn

Any help or suggestions appreciated. Thank you again. ~Brad

17 Mar 2010 addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber Steinhilber, Friedhelm

Answer to Brad Stirlitz: I updated the function, allowing to use the same ticks as on the first y-axis.

16 Mar 2010 addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber Stiritz, Brad

Hi Friedhelm, great idea for a utility function! I have a slightly different use-case than the example you provided. In my case, I would like to have different units on the right-side axis, but I would like the right-side axis ticks to match up exactly with the left-side axis ticks. For example, let's say my left-axis tick labels are the values (1:10) and I would like to see what the log of those values are on the opposite axis. Would it be possible to achieve this using your function? Thanks, Brad

Top Tags Applied by Friedhelm
add axis, multiple axes, plotting, plotyy, second y axis
Files Tagged by Friedhelm View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Jun 2010 Screenshot addaxis_unit This function adds a second y-axis to a x-y plot using a relationship between the two y-axes. Author: Friedhelm Steinhilber add axis, subplot, plotting, plotyy, second y axis, multiple axes 18 7
  • 3.66667
3.7 | 4 ratings
07 May 2010 Screenshot Myplotyy Myplotyy plots different data sets with a common x-axis but using individual y-axes in one figure. Author: Friedhelm Steinhilber add axis, confidence intervals, time series, plotyy, plotting, second y axis 36 0

Contact us at files@mathworks.com