Mathematica: How to change units od axis

Click For Summary
SUMMARY

The discussion focuses on changing the axis units in Mathematica plots, specifically converting relative units to micrometers (μm) using a conversion factor of 50 = 1μm. The user successfully demonstrates how to manually set ticks in a 3D plot using the Plot3D function, providing an example with specific tick labels for clarity. The solution involves customizing the Ticks option to display the desired units on the axes.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of 3D plotting concepts in Mathematica
  • Knowledge of unit conversion principles
  • Basic experience with customizing plot options in Mathematica
NEXT STEPS
  • Explore the Mathematica documentation on the Plot3D function
  • Learn about customizing ticks and labels in Mathematica plots
  • Investigate unit conversion techniques within Mathematica
  • Practice creating complex 3D plots with varied axis units
USEFUL FOR

This discussion is beneficial for Mathematica users, data visualizers, and researchers needing to customize plot axes for clearer representation of data in specific units.

brunoxy1
Messages
2
Reaction score
0
Hello,

I would like to know, how can I change units showed in axis. I would like to change those relative units (20000, 40000...) to μm. The conversional relation is 50 = 1μm, so instead 20000, 40000 i would like to have 400μm, 800μm. I enclose picture where it should be more clear what I am trying to achieve.

Thank you very much for your help
 

Attachments

  • impression mark.jpg
    impression mark.jpg
    23.3 KB · Views: 605
Physics news on Phys.org
You can set thick manually:
e.g.

Code:
Plot3D[Sin[(x y)/10], {x, 0, 100 Pi}, {y, 0, 100 Pi}, 
Ticks -> {{{0, "o"}, {100, "1m"}, {200, "2m"}, {300, "3m"}}, 
       {0, 100 Pi/2, 100 Pi}, {{-1, "A"}, {0, "B"}, {1, "C"}}}]
 
I did that, I found out yesterday:)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K