Solving Differential Equation Plotting with MATLAB

Click For Summary
SUMMARY

The discussion focuses on resolving issues related to saving differential equation plots in MATLAB, specifically when the background turns black and axes become obscured. Users suggest using the command figure('Color', 'w') to ensure a white background. Additionally, copying and pasting the figure into applications like Paint or Word is recommended as a workaround to avoid the black background issue. The color mapping inconsistency is also noted, indicating a need for better color management in the plots.

PREREQUISITES
  • Familiarity with MATLAB plotting functions
  • Understanding of differential equations
  • Basic knowledge of color management in graphical outputs
  • Experience with bitmap image formats
NEXT STEPS
  • Research MATLAB figure properties and customization options
  • Explore techniques for managing color maps in MATLAB plots
  • Learn about exporting figures in different formats in MATLAB
  • Investigate troubleshooting common MATLAB plotting issues
USEFUL FOR

Researchers, engineers, and students working with MATLAB who need to visualize and export differential equation solutions effectively.

saravanan13
Messages
52
Reaction score
0
Dear Friends
I am plotting some solution of differential equation in MATLAB and successfully completed but while attempting to save that plot as bitmap format the background of the plot become black with the axis and scale are hidden inside that background. I herewith attached the bitmap format of the plot. Suggest some ideas to help me out of this problem.
 

Attachments

Physics news on Phys.org
Could you copy the figure from MATLAB and paste it in paint?

Generally, I just copy and paste it in word file instead of saving figures. I never encountered black problem.
 
If you open the figure with: figure('Color', 'w') it should force the background to be white.

Colourmap looks off as well; the surface is clearly smooth, yet the colours jump from cyan to blue. Perhaps printscreen + paste is best as the above poster said.
 

Similar threads

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