<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Xiaoni,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You need to set this resource when you open the workstation:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace">wks_res = Ngl.Resources()</font></div><div class="gmail_default"><font face="monospace, monospace">wks_res.wkPaperSize = "A4"</font></div><div class="gmail_default"><font face="monospace, monospace">wks_type = "pdf" # A4 only works with PS and PDF</font></div><div class="gmail_default"><font face="monospace, monospace">wks = Ngl.open_wks(wks_type,"xy1",wks_res)</font></div><div class="gmail_default"><br></div></div><div class="gmail_default" style="font-size:small">I just tried this with the xy1.py example, and it seemed to work.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 30, 2017 at 4:01 AM, Xiaoni Wang <span dir="ltr"><<a href="mailto:xiaoni.wang@obspm.fr" target="_blank">xiaoni.wang@obspm.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
Following my previous email, I also tried<br>
wkres.wkWidth = 1024<br>
res.wkHeight = 1024<br>
<br>
But I got a warning : warning:wkHeight is not a valid resource in contour at this time<br>
<br>
Thanks in advance !<br>
<span class="HOEnZb"><font color="#888888"><br>
Xiaoni<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
Le 30 nov. 2017 à 11:33, Xiaoni Wang <<a href="mailto:xiaoni.wang@obspm.fr">xiaoni.wang@obspm.fr</a>> a écrit :<br>
<br>
> Hi Dear all,<br>
> I tried to set figure width and height by the following line, but there are some warnings.<br>
> res.wkPaperSize = "A4"<br>
> res.wkPaperWidthF = 8.5<br>
> res.wkPaperHeightF = 14.0<br>
><br>
> The warnings are like in the below:<br>
> warning:wkPaperWidthF is not a valid resource in contour at this time<br>
> warning:wkPaperHeightF is not a valid resource in contour at this time<br>
><br>
> Is this due to the version of Pyngl that I use ? Thank you in advance !<br>
><br>
> PS: thank you Mary for your response to my previous question !<br>
><br>
> Best regards<br>
><br>
> Xiaoni<br>
> ______________________________<wbr>_________________<br>
> pyngl-talk mailing list<br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/pyngl-talk</a><br>
<br>
______________________________<wbr>_________________<br>
pyngl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/pyngl-talk</a><br>
</div></div></blockquote></div><br></div>