Message Boards Message Boards

GROUPS:

[✓]  Avoid crooked line in $\log(\frac{a+1}{c+1})$ contour plot?

Posted 1 year ago
1324 Views
|
2 Replies
|
4 Total Likes
|

I plotted contour plot of this formula by Wolfram Alpha

$$\log(\frac{a+1}{c+1}), 0 < a < 1000, 0 < c < 1000$$

enter image description here

In the above figure, there is a crooked line in the bottom part. If I plot this, there is no crooked line.

$$\log(\frac{a}{c}), 0 < a < 1000, 0 < c < 1000$$

Why there is crooked line in the first case?

2 Replies

Hi

Wolfram Alfa uses a standard options to display ContourPlots. Maybe it's related to performance and display time

In Mathematica we have to controls on all options.

ContourPlot[Log[(a + 1)/(c + 1)], {a, 0, 1000}, {c, 0, 1000},  
FrameLabel -> Automatic](*Automatic option like WolframAlfa*)

enter image description here

PlotPoint option is to get smoother contours.

ContourPlot[Log[(a + 1)/(c + 1)], {a, 0, 1000}, {c, 0, 1000},  
FrameLabel -> Automatic, PlotPoints -> 100](*And here we need more CPU time*)

enter image description here

Regards, Mariusz.

Posted 1 year ago

Oh I got it. Thanks for the reply!

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract