Message Boards Message Boards

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

Posted 6 years ago

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?

POSTED BY: Jayong Kim
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 BY: Mariusz Iwaniuk
Posted 6 years ago

Oh I got it. Thanks for the reply!

POSTED BY: Jayong Kim
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