On Tuesday, April 23, 2013 6:15:00 PM UTC+4, kcrisman wrote:
>
>
>
> On Tuesday, April 23, 2013 6:15:23 AM UTC-4, LRN wrote:
>>
>> -----BEGIN PGP SIGNED MESSAGE----- 
>> Hash: SHA1 
>>
>> I've attached a sample tex file. 
>>
>>
> You are totally cutting-edge!  But remember, even with imagemagick, "This 
> option is not intended to produce good graphics, but to allow you to see 
> your graphics when you use latex and DVI files while writing your 
> document." (http://cdn.bitbucket.org/ddrake/sagetex/downloads/sagetex.pdf)
>
> Apparently SageTeX ignores most of the options, even the viewer='tachyon' 
> one.   But note that later on in the manual it says "you can always do 
> things manually".  This seems to work for me - looks ok, see attached png.
>
> \begin{sagesilent}
> u, v = var('u,v')
> fx = (3+sin(v)+cos(u))*cos(2*v)
> fy = (3+sin(v)+cos(u))*sin(2*v)
> fz = sin(u)+2*cos(v)
> x = parametric_plot3d([fx, fy, fz], (u, 0, 2*pi), (v, 0, 
> 2*pi),frame=False,dpi=300,viewer='tachyon')
> x.save(filename='ClassNotesPics/myspecialfile.png')
> \end{sagesilent}
>
> This 3d plot looks okay:
>
> \begin{center}
> \includegraphics[scale=.4]{ClassNotesPics/myspecialfile.png}
> \end{center}
>
>
> OK, i'll use the manual mode (save into png -> includegraphics).
That said, i've noticed that you're using [scale=.4]. How would it look 
without scale=.4? The point is that DPI info should allow typesetter to 
guess image size correctly, and it should look OK without scaling. Or not. 
After all, default image resolution does not seem to have any relation to 
dpi=..., so high dpi means "scale down", while low dpi means "scale up", 
but increasing/decreasing resolution (using figsize) will throw that 
scaling off...Damn. OK, so the right way is to specify dpi that is high 
enough for "printing" (that would be 300), then increase image resolution 
with figsize until the image is large enough. Right?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to