Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

implicit_plot3d string "\n" ignored

I presume other plot functions have the same problem.
code clip (I will set up a real executable if it will help)

gl_ant = 'Annotation'+" \n"  
gl_ant += file_name+" \n"
gl_ant += 'w_new='+str(w_new)+" \n"
print(gl_ant)
gl += text3d(gl_ant,[-10,10,10], color='blue')
gl

Where gl is implicit_plot3d(...._)
The print output is as intended, but gl plot ignores "\n"
Is there a special syntax for strings in plots?
Do I really have to add (and position) each line separately?
System: Ubuntu mate -- compiled 9.5

implicit_plot3d string "\n" ignored

I presume other plot functions have the same problem.
code clip (I will set up a real executable if it will help)

gl_ant = 'Annotation'+" \n" lim=2
gl=implicit_plot3d(x^2+y^2+z^2==1,(x,-lim,lim),(y,-lim,lim),(z,-lim,lim),color='purple',mesh=True)  gl_ant += file_name+" \n"
gl_ant += 'w_new='+str(w_new)+" \n"
print(gl_ant)
gl_a = ('test start'+"\n")
gl += text3d(gl_ant,[-10,10,10], color='blue')
text3d(gl_a + '\n test add'+"\n",[1,1,1] )
gl

Where gl is implicit_plot3d(...._)
The print output is as intended, but gl plot ignores "\n"
Is there a special syntax for strings in plots?
Do I really have to add (and position) each line separately?
System: Ubuntu mate -- compiled 9.5

implicit_plot3d string "\n" ignored

I presume other plot functions have the same problem.
code clip (I will set up a real executable if it will help)

lim=2
gl=implicit_plot3d(x^2+y^2+z^2==1,(x,-lim,lim),(y,-lim,lim),(z,-lim,lim),color='purple',mesh=True)  
gl_a = ('test start'+"\n")
gl += text3d(gl_a + '\n test add'+"\n",[1,1,1] )
gl

Where gl is implicit_plot3d(...._)
I looked around and this works as expected (?)

text("Sage graphics are \n really neat because they use matplotlib!", (2,12))

Whereas this doesn't, I guess it's built in.

text3d("Sage graphics are \n really neat because they use matplotlib!", (2,12,3))

The print output is as intended, but gl plot ignores "\n"
Is there a special syntax for strings in plots?
Do I really have to add (and position) each line separately?
System: Ubuntu mate -- compiled 9.59.5
I wanted to provide portable and multiple HTML plot pages facilitating comparing plots, and provide enough information in the plots so that they describe themselves; more or less. So the id's don't get forgotten and lost.

implicit_plot3d string "\n" ignored

I presume other plot functions have the same problem.
code clip (I will set up a real executable if it will help)

lim=2
gl=implicit_plot3d(x^2+y^2+z^2==1,(x,-lim,lim),(y,-lim,lim),(z,-lim,lim),color='purple',mesh=True)  
gl_a = ('test start'+"\n")
gl += text3d(gl_a + '\n test add'+"\n",[1,1,1] )
gl

Where gl is implicit_plot3d(...._)
I looked around and this works as expected (?)

text("Sage graphics are \n really neat because they use matplotlib!", (2,12))

Whereas this doesn't, I guess it's built in.

text3d("Sage graphics are \n really neat because they use matplotlib!", (2,12,3))

The print output is as intended, but gl plot ignores "\n"
Is there a special syntax for strings in plots?
Do I really have to add (and position) each line separately?
System: Ubuntu mate -- compiled 9.5
I wanted to provide portable and multiple HTML plot pages facilitating comparing plots, and provide enough information in the plots so that they describe themselves; more or less. So the id's don't get forgotten and lost.lost.
Now that I think about it; there are special functions that, I think, said they would combine html "fragments" (what ever they are). Does anybody know about these programs? References are fine.