[FieldTrip] Option to change axis font sizes?

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Wed Apr 6 16:25:43 CEST 2022


Hi Jan,

You’d probably need to change the fontsize property of the xlabel property of the axes in which the TFR is plotted. So:

ft_singleplotTFR(cfg, yourdata);
xlabel(’time’)

h = get(gca, ‘xlabel’);
set(h, ‘fontsize’, 42);

This fine grained window dressing is perhaps a bit too much to build in throughout the code base (due to the myriad of properties that you might want to have implemented). My suggestion is - at least that is what I always do - to create yourself a figure-generating script, which combines calls to ft_<plot> functions with low level matlab set/get operations and exportgraphics calls (or some other function to export your figures), which can be flexibly (re)used, extended, shared with colleagues etc. Most importantly, it will allow you later on to change the fontcolor/size/marker symbol etc as per the whims of the reviewer of your paper...

Best wishes,
Jan-Mathijs



> On 6 Apr 2022, at 15:21, Jan Ostrowski via fieldtrip <fieldtrip at science.ru.nl> wrote:
> 
> Dear all,
> 
> I have been trying to find an option in ft_singleplotTFR that would enable me to change the font size on the axes. While there is an option 'fontsize', it only changes the title of the figure.
> 
> If there is indeed no such option, and I did not miss anything, I'd like to ask the developers whether it would be possible to implement this for all types of figures where it may apply. Being able to manipulate the fontsize would make the figures more readable and publication-ready from the get-go!
> 
> If implementing this feature in the near future is out of the question, I'd be grateful for any advice on how to change the function to be able to choose axis fontsize.
> 
> Thank you all!
> 
> Jan
> 
> -- 
> Jan Ostrowski, M.Sc.
> Department of Systems Neuroscience
> University Medical Center Hamburg-Eppendorf
> Martinistr. 52
> Building W34, Room 320b
> D-20246 Hamburg, Germany
> 
> --
> 
> _____________________________________________________________________
> 
> Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Rechts; Gerichtsstand: Hamburg | https://urldefense.com/v3/__http://www.uke.de__;!!HJOPV4FYYWzcc1jazlU!4nQX59qKWJeur8hmPJUUL9Wackmx1omey6p_ISGHNCaH96h0BIQ4fCcIbRm5JynGyNnyutrbHssq0YF2ji7lPJK_K2jLvhmQKxX3oA$ Vorstandsmitglieder: Prof. Dr. Burkhard Göke (Vorsitzender), Joachim Prölß, Prof. Dr. Blanche Schwappach-Pignataro, Marya Verdel
> _____________________________________________________________________
> 
> SAVE PAPER - THINK BEFORE PRINTING
> 
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!4nQX59qKWJeur8hmPJUUL9Wackmx1omey6p_ISGHNCaH96h0BIQ4fCcIbRm5JynGyNnyutrbHssq0YF2ji7lPJK_K2jLvhmIwDpYXA$ 




More information about the fieldtrip mailing list