I would like to create Canvas with width along x is doubled the value along y. In Plotwe can control the image size with ImageSize -> Automatic -> {Y, X}, I want to do the same thing but with Canvas. So, with Plot I do it like this

Plot[x, {x, -10, 10}, ImageSize -> Automatic -> {400, 200}]

enter image description here

but with Canvas the size is always fixed.


enter image description here

  • 3
    $\begingroup$ try Canvas[ImageSize->{400,200}]? $\endgroup$
    – kglr
    May 22 at 20:36
  • 1
    $\begingroup$ similarly for other options in the list Options[Canvas] . $\endgroup$
    – kglr
    May 22 at 20:39
  • 1
    $\begingroup$ Well, I was doing a pity mistake because I tried that and did not work. Now It is working fine, Thanks @kglr $\endgroup$ May 22 at 20:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.