[sage-support] more control over plots

2008-09-25 Thread Maike

Hello,

I've tried looking at all the plot options in the documentation, but I
can't find how to do the following. Maybe someone can help...

* control over the scaling of the y-axis. I can choose xmin and xmax,
but the range of the y-axis is always chosen automatically.
* control over where the y-axis is located. It sometimes just ends up
right smack in the middle of the graph and looks dumb, I'd prefer for
it to be on the left.
* turning off the numbers on the axes. I'd like the axes to show, but
not the values.
* having a light gray grid displayed in the background of a plot

Cheers,
Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: more control over plots

2008-09-25 Thread Maike

Hi Jason,

Thanks for the help! Which parameter is it that tells the axis to be
on the left? My example is:

rsa = line([(2000,952),(2005,1149),(2010,1369),(2015,1613),(2020,1881),
(2025,2174),(2030,2493),(2035,2840),(2040,3214)],rgbcolor=green)
ecc = line([(2000,132),(2005,139),(2010,146),(2015,154),(2020,161),
(2025,169),(2030,176),(2035,184),(2040,191)],rgbcolor=red)
(rsa+ecc).save('bild.png',xmin=2000,xmax=2040,axes_labels=['year','key
length in bits'],figsize=5)

Here I'd like the axis to be on the left. Can you tell me how to do
this here? Thanks!
Maike


On Sep 25, 1:18 pm, Jason Grout [EMAIL PROTECTED] wrote:
 Jason Grout wrote:
  Maike wrote:
  Hello,

  I've tried looking at all the plot options in the documentation, but I
  can't find how to do the following. Maybe someone can help...

  * control over the scaling of the y-axis. I can choose xmin and xmax,
  but the range of the y-axis is always chosen automatically.
  * control over where the y-axis is located. It sometimes just ends up
  right smack in the middle of the graph and looks dumb, I'd prefer for
  it to be on the left.

  For these two, use the ymin and ymax options in show when you show
  the plot.  Something like:

  sage: plot(sin(x), (x, -pi, pi)).show(ymin=-1, ymax=3)

 Sorry, I misread your second point.  The following example puts the
 y-axis on the left:

 sage: plot(sin(x), (x, 0, pi)).show(ymin=-1,ymax=-3)

 Does that help?

 Jason
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Links between worksheets

2008-09-24 Thread Maike

Hi all,

I can have a link on one worksheet to another worksheet (e.g.
http://localhost:8000/home/user/12/), but this includes the number
that sage internally gives that worksheet (here: 12). Now if I upload
these worksheets to another server, they are assigned different
numbers and the links don't work properly anymore. Is there a any
other way of linking in a more stable way, e.g. using the title of a
worksheet? Also, can I have a link that goes to a certain place within
a worksheet?

Cheers,
Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Secure Sage Server

2008-09-24 Thread Maike

We'd like to set up a sage server allowing different users to see,
copy and edit our published worksheets. However, this allows users to
execute arbitrary system calls, e.g.
 os.popen(ps auxw).read()
The formatting of the output is not perfect, but still, this is a
problem!

I'd be grateful for any suggestions on how to set up a SECURE sage
server. If this has been covered elsewhere, just post the link...
Thanks!

Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Suggestions for the notebook

2008-09-23 Thread Maike

Okay that's right. But still, #auto doesn't work together with %hide
or %latex, no matter which order I put these commands in, and I need
this feature for my %latex cells, because they're the ones not being
executed when I start up a worksheet.

Maike

On Sep 22, 6:31 pm, William Stein [EMAIL PROTECTED] wrote:
 On 9/22/08, Maike [EMAIL PROTECTED] wrote:



  Hmmm, I get NameError: name 'auto' is not defined. I'm using version
  3.1.1, should that support %auto?

 Use #auto, not %auto





  Thanks! Maike

  On Sep 22, 12:06 pm, Mike Hansen [EMAIL PROTECTED] wrote:
  Hi Maike,

  On Mon, Sep 22, 2008 at 3:04 AM, Maike [EMAIL PROTECTED]
  wrote:

   (2) Thanks that sounds good. I'm not sure how to use #auto though,
   where do I put this option?

  You put %auto as the first line of the cell that you want to
  auto-evaluate.

  --Mike

 --
 William Stein
 Associate Professor of Mathematics
 University of Washingtonhttp://wstein.org
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Suggestions for the notebook

2008-09-23 Thread Maike

Thanks, I'll make sure I get 3.1.2 installed today!


On Sep 23, 10:26 am, Mike Hansen [EMAIL PROTECTED] wrote:
 Hello,

 On Tue, Sep 23, 2008 at 1:21 AM, Maike [EMAIL PROTECTED] wrote:

  Okay that's right. But still, #auto doesn't work together with %hide
  or %latex, no matter which order I put these commands in, and I need
  this feature for my %latex cells, because they're the ones not being
  executed when I start up a worksheet.

 There was a bug in Sage 3.1.1 that caused any associated files or
 images with a cell (such as plots or the output of %latex cells) to be
 deleted when the worksheet was closed.  If this is the reason why you
 want to use the auto cells, you should upgrade to Sage 3.1.2 since I
 fixed this bug in it.  This should alleviate some of your problems.

 --Mike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Suggestions for the notebook

2008-09-22 Thread Maike

(2) Thanks that sounds good. I'm not sure how to use #auto though,
where do I put this option?

Cheers,
Maike

On Sep 5, 6:12 pm, Marshall Hampton [EMAIL PROTECTED] wrote:
 Hi,

 There is a wiki page for notebook suggestions, but I don't think its
 been used much lately:http://wiki.sagemath.org/Notebook_suggestions

 Your suggestion (1) is good, that would be nice.  Probably wouldn't be
 too hard to do.
 (2) I think is problematic - the way I often use the notebook, I
 wouldn't want all cells evaluated.  You can use the #auto option to
 auto-evaluate.

 Cheers,
 M. Hampton

 On Sep 5, 8:18 am, Maike [EMAIL PROTECTED] wrote:

  Hello,

  I'm not sure if this mailing list is the right place for suggestions
  (sorry to all for the extra spam, if there is a better way, please
  let me know), but here are two ideas for one of the next versions of
  the notebook:

  1. Printing: At the moment the Print link prints all source code and
  output. It would be nice to be able to print just the code or just the
  output.

  2. When I open an existing worksheet, not all cells are evaluated.
  Especially ones that start with %hide or %latex don't show the output
  until I choose Evaluate All from the Actions...-menu. It would be
  nice to have ALL cells evaluated automatically when starting up a
  worksheet.

  Great work so far, I'm really impressed with how quickly Sage is
  developing!
  Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Suggestions for the notebook

2008-09-22 Thread Maike

Hmmm, I get NameError: name 'auto' is not defined. I'm using version
3.1.1, should that support %auto?

Thanks! Maike

On Sep 22, 12:06 pm, Mike Hansen [EMAIL PROTECTED] wrote:
 Hi Maike,

 On Mon, Sep 22, 2008 at 3:04 AM, Maike [EMAIL PROTECTED] wrote:

  (2) Thanks that sounds good. I'm not sure how to use #auto though,
  where do I put this option?

 You put %auto as the first line of the cell that you want to auto-evaluate.

 --Mike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Upgrade to version 3.1.1

2008-09-05 Thread Maike

Okay, here's another big problem that seems to have come with version
3.1.1:
Edit a copy doesn't work any more on published worksheets! Sage
makes a copy, but I can't edit it. This is a big problem, as we're
working with several users.

Please help! Thanks.
Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Suggestions for the notebook

2008-09-05 Thread Maike

Hello,

I'm not sure if this mailing list is the right place for suggestions
(sorry to all for the extra spam, if there is a better way, please
let me know), but here are two ideas for one of the next versions of
the notebook:

1. Printing: At the moment the Print link prints all source code and
output. It would be nice to be able to print just the code or just the
output.

2. When I open an existing worksheet, not all cells are evaluated.
Especially ones that start with %hide or %latex don't show the output
until I choose Evaluate All from the Actions...-menu. It would be
nice to have ALL cells evaluated automatically when starting up a
worksheet.

Great work so far, I'm really impressed with how quickly Sage is
developing!
Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Upgrade to version 3.1.1

2008-09-04 Thread Maike

Hello,

I just upgraded from 3.0.5 to version 3.1.1 and several things aren't
working any more:

1. sliders aren't showing when used with the interact-functionality.
It doesn't work the way it used to in the older version, and it
doesn't work when I copy examples directly from the documentation.
There's just the name of the variable, but no slider next to it. What
can I do??

2. Without changing any of the code, I get a new error message that
wasn't there before, and it doesn't tell me the line of code where
something went wrong. Since the code is pretty long, maybe someone can
tell me what kind of error I have to look for when I see this:
ValueError: invalid literal for int() with base 10: 'NaN'

3. Syntax on arrows has changed. Before I gave the starting and ending
point of the arrow, now you have to give the starting point and the
difference between the starting and ending points (something like
(3,4) meaning 3 to the right, 4 up). However, the documentation still
explains it the old way and it took me a while to figure it out.

Thanks for any help with the first two problems!
Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] including images

2008-09-04 Thread Maike

Hi,

I'd like to include an .eps graphic in my sage-notebook output.
neither the latex \includegraphics command nor the html img tag seem
to work. Which command can I use, and where should I save the .eps
file?

I've also tried to find the files created by the sage .save(...)
function (hoping to be able to put my file in the same place), but I
wasn't able to locate them. Where does Sage put those??

Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: AttributeErrors in EllipticCurve classes

2008-09-03 Thread Maike

Oh wow, I didn't think the stuff was that new! I will make sure I get
the new version and check it out soon. Thanks, John!
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: AttributeErrors in EllipticCurve classes

2008-09-03 Thread Maike

John,

Hello again :-) While you're working on more elliptic curves stuff,
what I could use is the following:
I'd like to define points on curves by just providing the x-coordinate
(and maybe an indicator of which of the possible two y-coordinates I
want). When I do something like

E = EllipticCurve(RR,[a,b])
P = E([xP,sqrt(xP^3+a*xP+b)])

it doesn't always work.

Or is there a way of doing this already?

Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: AttributeErrors in EllipticCurve classes

2008-09-03 Thread Maike

Yeah right, I'll install that new version right now!
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] using latex packages

2008-08-29 Thread Maike

Hello again,

is there any way to use latex packages within sage? I'd like to write
a german text, and that will be a pain if

%latex
\usepackage{ngerman}

doen't work. Maybe I first have to install the package somewhere??

Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: using latex packages

2008-08-29 Thread Maike

Hi William,

That sounds great to me. As long as it'll allow me to load the ngerman
package in the notebook version of Sage, that'll do. Thanks!

Maike

P.S. And thanks Stan for the hint! I didn't know sagetex. As I'm using
the notebook to combine latex typesetting with the interact
functionality of Sage, it's probably not the best idea. But it might
be helpful for future projects!
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] latex-hyperlinks not working

2008-08-18 Thread Maike

Hello,

I'm writing some latex-text in Sage and am trying to put a web-link
into it. Usually in latex the commands  \htmladdnormallink and
\htmladdimg do the job. Here however that's not working.

%latex
\htmladdnormallink{Google}{http://www.google.de}

Does anyone know which command will work?

Thanks!
Maike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---