i chime in to +1 for adding a plot attribute to RealSet (as a user, it was 
among the 1st things i tried when i discovered this class), something like 
`plot(RealSet(-oo, oo))`.

note that matplotlib allows to draw a plain horizontal line: 

{{{
from matplotlib import pyplot as plt

plt.figure()
plt.hlines(1, -10, 10)    # horizontal line
plt.eventplot([-1, 1], linelengths=0.1)    # vertical markers
plt.axis('off')
plt.show() 
}}}

playing with the parameters you can make it look nicer, such as drawing 
right/left arrows indicating unboundedness (similar to the plot of 
unbounded polyhedra), thicker horizontal line, to label -1, 1, and so on.

El miércoles, 5 de abril de 2017, 4:31:30 (UTC+2), saad khalid escribió:
>
> I'm trying to get an image of just the real line, ideally with a fairly 
> thick line for the axis, with the points 1 and -1 labelled, but the line 
> extending beyond them a bit. The main problem I'm having is, I'm trying to 
> do this with the plot function. I just do
>
> plot(x,x,alpha = 0)
>
> However, I can't figure out how to make the y-axis disappear. How should I 
> do this? I can't figure out how to do the rest either, but they are not as 
> important (though, if you have tips for doing that part, that'd be great as 
> well!) Thanks!
>

-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to