ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 29 Oct 2015 17:28:20 +0100Typeset latex in SMChttps://ask.sagemath.org/question/30345/typeset-latex-in-smc/In the classical Sage notebook there is the "view" command that
can be used to e.g. get a plot of a graph rendered by pdflatex.
Is there an equivalent in SMC?
For example I want the following code to give me a graph plot rendered by pdflatex.
G=graphs.BullGraph()
G.set_latex_options(format='dot2tex', prog='dot')
view(G)
I can get the corresponding latex code in SMC by
latex(G)
but I have no idea how to render it.Jeremias EpperleinThu, 29 Oct 2015 17:28:20 +0100https://ask.sagemath.org/question/30345/How can I display a polytope in SageMathCloud?https://ask.sagemath.org/question/23544/how-can-i-display-a-polytope-in-sagemathcloud/So... I have students who cannot install sage locally. Thus they use sagecloud instead. However, graphics don't show up there. Instead, some wack text string that semi-mimics the command given shows up. What's up with this? I have no idea what to tell the students...smbelcasWed, 23 Jul 2014 15:22:32 +0200https://ask.sagemath.org/question/23544/Graphics not coming in Sagecloud but showing in Sageonlinehttps://ask.sagemath.org/question/10551/graphics-not-coming-in-sagecloud-but-showing-in-sageonline/Hello,
I am running a code by Jason Grout in Sagecloud but I don't see the graphics whereas I see the graphics when I run it in Sageonline. Could you please help?
The code is as follows:
load('https://raw.github.com/jasongrout/hopf_fibrations/master/hopf.pyx')
load('https://raw.github.com/jasongrout/hopf_fibrations/master/hopf_animate.sage')
def base_circle(po, numpts=24):
return BaseLatitude(numpts/30,0,2*pi,po=po,input_type='sph')
@interact
def hopf_fibers(tilt=slider(0,pi,default=.587*pi,label="Tilt from vertical axis"),
angle=slider(0,2*pi,default=1.41*pi, label="Rotation around vertical axis"),
quality=checkbox(default=False,label="High quality (much slower)"),
img_size=input_box(default=500,label="Imgage Size (pixels)")):
axis_az = angle
axis_po = pi/2
rot_alpha = tilt
circles = [base_circle(po,num) for po,num in [(.5*pi/2,20), (1.5*pi/2,20)]]
points = []
for c in circles:
c.set_rotation((1,axis_az,axis_po), rot_alpha)
points += c.points()
draw_frame(points, n=0, high_quality=quality, resolution=img_size, only_show=True)
---------------------------------------------------------------------------------VijayFri, 20 Sep 2013 07:55:35 +0200https://ask.sagemath.org/question/10551/