guess it that from the users point of view using the aspect ration
of the first graph
would make a lot of sense - at least when the polygon fits into the
first graph.
Should I file an enhancement request?
Best regards
Goebbe
--
To post to this group, send email to sage-support@googlegroups.com
To
tio of the first plot would be a good
workaround,
since with the p += ... I normally add elements to an existing
graph - but
I do not expect to change the aspect ratio completely.
Thanks a lot for the hint with the "aspect_ratio='automatic'"
this worked fine. :-)
Thanks
Thanks a lot for your answers.
The figsize option did not work. The problem is that the graph is not
tall enough
(has not enough height). figsize just scales the whole image but keeps
the wrong
aspect ratio.
Resizing the y-axis did not do the trick neither. Look at my first
example,
I already spec
tion_function(ru))] +
[(x,NV01.distribution_function(x)) for x in [ru+0.1,ru+0.2,..,2 ]] +
[ (4,0),(ru,0)], rgbcolor=(1,0,0), alpha=0.3)
p.show()
Is this a bug?
Does anybody know a workaround?
Thanks in advance
Goebbe
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscri
the ticks. (That is my interpretation)
Obviously, some of the parameters above are not required for the
ticks, but I
post this here anyway, since it could be useful for somebody else.
Is there a similar method to change the defaults for Sage plot?
This would make my code much clearer.
Thanks
G
parameters
yticks = pyplot.getp(m.axes[0], 'yticklines')
pyplot.setp(xticks, markeredgewidth=2, markersize=10) #set tick
parameters
pyplot.setp(yticks, markeredgewidth=2, markersize=10)
from matplotlib.backends.backend_agg import FigureCanvasAgg
m.set_canvas(FigureCanvasAgg(m))
m.savefig(
Not sure what generating "integers" means, when drawing from a
normal,
but if you just want to draw random numbers, the following should do
it:
NV001 = RealDistribution('gaussian',sqrt(0.1)) #N(0,0.1) mean=0 std
dev = sqrt(0.1)
randomdraws = [NV001.get_random_element() for _ in range(1000)]
--
Hi,
this is my first post. Please keep in mind that I have just started to
use Sage.
I use the sage notebook in order to prepare graphs for a introductory
statistics class.
Since I use the graphs in presentations (powerpoint) - I modified
linewidth, fontsize in
order to get a graph that is easily