i think this works only on linux because the first time i put Plot(x,y) the
error is
        Window initialization failed: Unable to share contexts
then again i use the above command then second error is
       Window initialization failed: exception: access violation reading
0xFFFFFFFFFFFFFFFF
      now when i use the command for the third time it works with no error
but output file is not seen


On Mon, Dec 6, 2010 at 8:31 PM, Benjamin Root <[email protected]> wrote:

> On Mon, Dec 6, 2010 at 2:37 AM, prem kiran <[email protected]> wrote:
>
>>
>>
>> ---------- Forwarded message ----------
>> From: premkiran <[email protected]>
>> Date: Mon, Dec 6, 2010 at 2:06 PM
>> Subject: [sympy] Regarding usage of Plot
>> To: sympy <[email protected]>
>>
>>
>> I have used Plot function to plot 2D functions.The problem is I am
>> unable to view the plotted function either as png file or as pdf
>> file .i have used the below mentioned attribute for it.
>>    g.saveimage(outfile="C:\users\prem\desktop\kir", format='pdf',
>> size=(600, 500))
>> but there is no file being created on desktop with that name.Also I
>> tried changing the format to doc ,create a work file and see whether
>> the plotting is being pasted in theis word file but in vain.plese
>> suggest where i can see the plot.
>> THANK YOU
>>
>>
> Prem, what is probably happening here is that the backslashes are being
> interpreted as an "escape character" and so the filename isn't what you
> expect it to be.  To prevent it from being interpreated that way, you can
> put an 'r' before the beginning of the string, like so:
>
> g.saveimage(outfile=r"C:\users\prem\desktop\kir", format='pdf', size=(600,
> 500))
>
> I hope that helps!
> Ben Root
>
>


-- 
PREM KIRAN
2nd YEAR
DEPARTMENT OF MECHANICAL ENGINEERING
IIT MADRAS
CHENNAI

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to