Hi all,(adsbygoogle = window.adsbygoogle || []).push({});

I'm working on a simulation for some misurement with a Thomson spectrometer and I'm having some issue with the plot layout.

In x and y axis I have magnetic and electric deflection and I have other two axis on top and right giving momentum and energy info.

I am not able to write the secondary tick label in the proper way: as defoult MatLab writes tick label as integer and a (x10^-12) at the end of the label but on the bottom of the screen. If I use:

Code (Text):

set(gca, 'YTickLabel', num2str(get(gca,'YTick')','%d'))

[\code]

it writes the tick label as "6.00000e^12" and I have some overlaps.

Moreover if I make the plot window bigger the secondary axes don't resize properly.

Last the plot title is written too high...

Could somebody help me in fixing this bugs?

Thanks

P.S.: I have attached two images with a screenshot and a jpg made by MatLab and the code I use for plot

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Help with MatLab plot

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads for Help MatLab plot |
---|

Help with Excel graph please |

MATLAB MATLAB: forces acting on an object |

MATLAB MATLab: Not enough inputs for nlinfit |

MATLAB Help needed to fix a matlab code |

LaTeX Help with page dimensions in latex |

**Physics Forums | Science Articles, Homework Help, Discussion**