Message Boards Message Boards

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

GROUPS:

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
Answer
25 days ago

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
Answer
25 days ago

Oh I got it. Thanks for the reply!

POSTED BY: Jayong Kim
Answer
23 days ago

Group Abstract Group Abstract