Rank: 2523 based on 53 downloads (last 30 days) and 3 files submitted
photo

Patrick Toche

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Patrick Toche View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 Apr 2009 arrowflow Plot L-shaped arrows of motion for phase diagram. Manually select 4 directions. Author: Patrick Toche phase diagrams, arrows 14 0
26 Apr 2009 Format Tick Labels (Extended) Replace Tick Label with LaTeX compatible Objects. Extends file 15986 created by Alexander Hayes. Author: Patrick Toche annotation, axes, customization, figure, latex, plot 32 4
  • 4.25
4.2 | 4 ratings
02 Apr 2007 mat file icon an icon for mat files that is different from the icon for m files ! Author: Patrick Toche icon matico 7 0
Comments and Ratings by Patrick Toche View all
Updated File Comments Rating
20 Apr 2009 Format Tick Labels Replace Tick Label with Specified Formattable Objects. Author: Alexander Hayes

This is a very useful submission. I'm sorry that I submitted 1 star above, I tried to cancel but couldn't. I think it happened when I refreshed my browser. If someone knows how to cancel it, please by all means do. I meant to give 5 stars.

I just want to say that I made a minor extension to this script. It should appear under my name, it's a very trivial extension: I have Introduced a distinction between offsets for the horizontal axis offset_x and vertical axis offset_y. This is useful if your x-axis and y-axis do not cross at the origin. This extension gives you independent control of the offset for the x-axis labels and y-axis labels. If you're interested it should soon appear under my name. I don't have the reference now as I only just uploaded it. Thanks again to Alexander.

20 Apr 2009 Format Tick Labels Replace Tick Label with Specified Formattable Objects. Author: Alexander Hayes

Comments and Ratings on Patrick Toche's Files View all
Updated File Comment by Comments Rating
27 Aug 2013 Format Tick Labels (Extended) Replace Tick Label with LaTeX compatible Objects. Extends file 15986 created by Alexander Hayes. Author: Patrick Toche David Doria

The x axis label seems to overlap the x tick labels?

data=rand(5);

plot(0:pi/4:pi, data,'LineWidth', 3);

format_ticks(gca,{'0', '\pi/4', '\pi/2', '3\pi/4', '\pi'},[],0:pi/4:pi)

ylim([0 1]);
xlabel('My x label')
ylabel('My y label')

fontSize = 20;

set(gca,'FontSize',fontSize)

30 Jul 2013 Format Tick Labels (Extended) Replace Tick Label with LaTeX compatible Objects. Extends file 15986 created by Alexander Hayes. Author: Patrick Toche Gisela Galmiche

05 Jul 2012 Format Tick Labels (Extended) Replace Tick Label with LaTeX compatible Objects. Extends file 15986 created by Alexander Hayes. Author: Patrick Toche Oliver Woodford

Handy, but could use the same font as the axes by default. Currently you have to set this manually.

25 Oct 2011 Format Tick Labels (Extended) Replace Tick Label with LaTeX compatible Objects. Extends file 15986 created by Alexander Hayes. Author: Patrick Toche Robert Sparr

Very nice. I've wanted a way to do this for a long time.

Two improvements would be nice: (1) Add support for doing only Y ticks. (2) Check for an axis label and reposition it correctly so that it does not overlap with the new tick labels.

05 Jun 2011 Format Tick Labels (Extended) Replace Tick Label with LaTeX compatible Objects. Extends file 15986 created by Alexander Hayes. Author: Patrick Toche Igor

Exactly what i was looking for...

However, 2 tiny suggestions:

To be able to use Y-ticks only one should replace 2 strings around #225 with
======================================
%find out if we have to use the LaTex interpreter
all_ticks = [tickx ticky];
temp = all_ticks{1};
======================================

it's also a bit unexpected that
offsety>0 means 'left' ...

Contact us