1
$\begingroup$

I want to plot my function on the log-log scale. Why this code doesn't work for me? I write the following one, but nothing happens.

ContourPlot[
Sin[3 x]+Cos[3 y]==1/2,
{x,.01 Pi,3 Pi},
{y,.01 Pi,3 Pi},
ScalingFunctions->{"Log","Log"}]
$\endgroup$
4
  • 3
    $\begingroup$ Looks all fine for me when I try it in my copy of version 12. What's the issue? $\endgroup$ Aug 28, 2019 at 1:29
  • $\begingroup$ Mine is version 11. Can it be a reason for the problem? The problem is that nothing happens. No error is shown. No graph is shown. $\endgroup$
    – Mehrdad
    Aug 28, 2019 at 2:27
  • $\begingroup$ Hm. Maybe if you increase to increase PlotPoints...? $\endgroup$ Aug 28, 2019 at 2:36
  • $\begingroup$ Code works fine with versions 11.2, 113, and 12.0 on a Mac. $\endgroup$
    – Bob Hanlon
    Aug 28, 2019 at 3:02

1 Answer 1

2
$\begingroup$

In version <=11 try this workaround

ContourPlot[Sin[3 Exp[logx]] + Cos[3 Exp[logy]] == 1/2, {logx, Log[.01],Log[3 Pi]}, {logy, Log[0.01], Log[3 Pi]}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.