Re: [sage-support] Re: Graph plotting problem. Everything looks small.

2013-01-13 Thread crushinator
Here is a picture of the problem.  The vertices are too small and the edge 
arrows are too big.  I  can't tell anything that is going on.  I tried 
increasing figsize, vertex_size, and the dpi you suggested.  I cannot 
figure out why this won't work.  Any help is greatly appreciated.  Thank 
you.

On Thursday, January 10, 2013 5:32:15 PM UTC-6, David Joyner wrote:

 On Thu, Jan 10, 2013 at 6:07 PM, crushinator 
 joel.m...@gmail.comjavascript: 
 wrote: 
  Alternatively, is there a way I can make the graphics produced higher 
  resolution? 
  

 I don't understand what you tried and what you didn't. 
 Did you try the dpi option? (It's in th reference manual... 
 search sagemath graph plot dpi option then use find to get 
 the first line with dpi in it.) 
 If so, what was the problem? 

  
  On Thursday, January 10, 2013 3:27:53 PM UTC-6, crushinator wrote: 
  
  Hi, 
  
  I have a problem getting a graph to plot on sage.  I have a graph 
 called 
  dg, a digraph on 100 vertices.  The graph is several components.  When 
 I 
  plot dg using the following: 
  
  dg.plot(layout='graphviz', vertex_labels=false, vertex_size = 10) 
  
  I get a graph where the vertices are extremely small and the arrows 
 from 
  the edges dominate the visualization.  I'm trying to make the graph 
 have 
  normal sized vertices and edges. 
  My question is what settings can i use to make the arrows on the edges 
  smaller but visible? 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups 
  sage-support group. 
  To post to this group, send email to 
  sage-s...@googlegroups.comjavascript:. 

  To unsubscribe from this group, send email to 
  sage-support...@googlegroups.com javascript:. 
  Visit this group at http://groups.google.com/group/sage-support?hl=en. 
  
  


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.


attachment: tmp_2.png

[sage-support] Can't upload .sws

2013-01-13 Thread Roger Frye
I downloaded the 
number_theory.primes_diophantine_equations.1.0.swshttp://wiki.sagemath.org/days13/projects/sagenewbie?action=AttachFiledo=viewtarget=number_theory.primes_diophantine_equations.1.0.sws
 sage 
worksheet from the Sage 
Primers http://wiki.sagemath.org/days13/projects/sagenewbie section of the 
Sage Wiki.

The first time I clicked on the download, it had me link up sage.app to it, 
but then nothing happened.
The second time I clicked on it, I got a popup error message saying
 Worksheet upload unimplemented
 I don't know how to open .sws files yet.  Please fix
 trac 8473 and get back to me.
The next thing I tried was the Upload button in The Sage Notebook.  I 
selected the downloaded file and clicked Upload Worksheet.  This time I got 
a browser page saying
 There was an error uploading the worksheet. It could be an old 
unsupported format or worse.
I had the same problem trying to upload another worksheet.

Should I be able to upload Sage worksheets into the Notebook?
I am running a binary install of 'Sage Version 5.5, Release Date: 
2012-12-22' on an Intel Mac.

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




Re: [sage-support] Can't upload .sws

2013-01-13 Thread John Cremona
While you certainly should be able to upload worksheets to your
notebook like this, I fear that this particular worksheet was created
in 2009 and a lot has changed since then, so current Sage cannot open
it.

Someone else might give a hint about how to convert the worksheet.

John Cremona

On 13 January 2013 17:27, Roger Frye frye.ro...@gmail.com wrote:
 I downloaded the number_theory.primes_diophantine_equations.1.0.sws sage
 worksheet from the Sage Primers
 http://wiki.sagemath.org/days13/projects/sagenewbie section of the Sage
 Wiki.

 The first time I clicked on the download, it had me link up sage.app to it,
 but then nothing happened.
 The second time I clicked on it, I got a popup error message saying
  Worksheet upload unimplemented
  I don't know how to open .sws files yet.  Please fix
  trac 8473 and get back to me.
 The next thing I tried was the Upload button in The Sage Notebook.  I
 selected the downloaded file and clicked Upload Worksheet.  This time I got
 a browser page saying
  There was an error uploading the worksheet. It could be an old
 unsupported format or worse.
 I had the same problem trying to upload another worksheet.

 Should I be able to upload Sage worksheets into the Notebook?
 I am running a binary install of 'Sage Version 5.5, Release Date:
 2012-12-22' on an Intel Mac.

 --
 You received this message because you are subscribed to the Google Groups
 sage-support group.
 To post to this group, send email to sage-support@googlegroups.com.
 To unsubscribe from this group, send email to
 sage-support+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-support?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




[sage-support] Re: Can't upload .sws

2013-01-13 Thread P Purkayastha

You can get some of the information from the worksheet like this:

1. Open the sws file using tar:
tar jxf number_theory*.sws

It creates a directory named 38.

2. Then open a new worksheet in your sage notebook.

3. Click on Edit which will show you an area to enter plain text. 
Delete whatever is present there.


4. Copy and paste the contents of ./38/worksheet.txt into the plait text 
area and click on save changes.


5. The worksheet should be mostly readable and working.

On 01/14/2013 01:48 AM, John Cremona wrote:

While you certainly should be able to upload worksheets to your
notebook like this, I fear that this particular worksheet was created
in 2009 and a lot has changed since then, so current Sage cannot open
it.

Someone else might give a hint about how to convert the worksheet.

John Cremona

On 13 January 2013 17:27, Roger Frye frye.ro...@gmail.com wrote:

I downloaded the number_theory.primes_diophantine_equations.1.0.sws sage
worksheet from the Sage Primers
http://wiki.sagemath.org/days13/projects/sagenewbie section of the Sage
Wiki.

The first time I clicked on the download, it had me link up sage.app to it,
but then nothing happened.
The second time I clicked on it, I got a popup error message saying
  Worksheet upload unimplemented
  I don't know how to open .sws files yet.  Please fix
  trac 8473 and get back to me.
The next thing I tried was the Upload button in The Sage Notebook.  I
selected the downloaded file and clicked Upload Worksheet.  This time I got
a browser page saying
  There was an error uploading the worksheet. It could be an old
unsupported format or worse.
I had the same problem trying to upload another worksheet.

Should I be able to upload Sage worksheets into the Notebook?
I am running a binary install of 'Sage Version 5.5, Release Date:
2012-12-22' on an Intel Mac.

--
You received this message because you are subscribed to the Google Groups
sage-support group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.







--
You received this message because you are subscribed to the Google Groups 
sage-support group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




[sage-support] Re: Can't upload .sws

2013-01-13 Thread Roger Frye
Amazing!  Thank you.

On Sunday, January 13, 2013 11:37:02 AM UTC-7, P Purkayastha wrote:

 You can get some of the information from the worksheet like this: 

 1. Open the sws file using tar: 
 tar jxf number_theory*.sws 

 It creates a directory named 38. 

 2. Then open a new worksheet in your sage notebook. 

 3. Click on Edit which will show you an area to enter plain text. 
 Delete whatever is present there. 

 4. Copy and paste the contents of ./38/worksheet.txt into the plait text 
 area and click on save changes. 

 5. The worksheet should be mostly readable and working. 



-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




Re: [sage-support] Re: Graph plotting problem. Everything looks small.

2013-01-13 Thread Nathann Cohen
Hell !!!

You problem may be solved by copying the graph's edges first :

dg2 = DiGraph()
dg2.add_edges(dg.edges())
dg2.show()

If it changes nothing there's not much that I can do unless you give us a 
way to create your graph on our computers :-)

Nathann

On Sunday, January 13, 2013 6:07:05 PM UTC+1, crushinator wrote:

 Here is a picture of the problem.  The vertices are too small and the edge 
 arrows are too big.  I  can't tell anything that is going on.  I tried 
 increasing figsize, vertex_size, and the dpi you suggested.  I cannot 
 figure out why this won't work.  Any help is greatly appreciated.  Thank 
 you.

 On Thursday, January 10, 2013 5:32:15 PM UTC-6, David Joyner wrote:

 On Thu, Jan 10, 2013 at 6:07 PM, crushinator joel.m...@gmail.com 
 wrote: 
  Alternatively, is there a way I can make the graphics produced higher 
  resolution? 
  

 I don't understand what you tried and what you didn't. 
 Did you try the dpi option? (It's in th reference manual... 
 search sagemath graph plot dpi option then use find to get 
 the first line with dpi in it.) 
 If so, what was the problem? 

  
  On Thursday, January 10, 2013 3:27:53 PM UTC-6, crushinator wrote: 
  
  Hi, 
  
  I have a problem getting a graph to plot on sage.  I have a graph 
 called 
  dg, a digraph on 100 vertices.  The graph is several components.  When 
 I 
  plot dg using the following: 
  
  dg.plot(layout='graphviz', vertex_labels=false, vertex_size = 10) 
  
  I get a graph where the vertices are extremely small and the arrows 
 from 
  the edges dominate the visualization.  I'm trying to make the graph 
 have 
  normal sized vertices and edges. 
  My question is what settings can i use to make the arrows on the edges 
  smaller but visible? 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups 
  sage-support group. 
  To post to this group, send email to sage-s...@googlegroups.com. 
  To unsubscribe from this group, send email to 
  sage-support...@googlegroups.com. 
  Visit this group at http://groups.google.com/group/sage-support?hl=en. 
  
  



-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




Re: [sage-support] Re: Graph plotting problem. Everything looks small.

2013-01-13 Thread crushinator
Hi Nathann.  Unfortuantely, I didn't get any difference.  Here is a way to 
create the graph:
CG = DiGraph()
CG.add_edges([(0, 36, None), (1, 48, None), (2, 14, None), (3, 22, None), 
(4, 5, None), (4, 56, None), (5, 4, None), (6, 8, None), (6, 27, None), (7, 
8, None), (8, 6, None), (8, 7, None), (8, 27, None), (8, 28, None), (10, 
11, None), (10, 13, None), (11, 10, None), (12, 53, None), (12, 61, None), 
(13, 10, None), (14, 2, None), (15, 34, None), (16, 22, None), (16, 38, 
None), (17, 18, None), (18, 17, None), (19, 24, None), (21, 49, None), (21, 
64, None), (21, 69, None), (22, 3, None), (22, 16, None), (24, 19, None), 
(25, 34, None), (27, 6, None), (27, 8, None), (27, 58, None), (28, 8, 
None), (29, 42, None), (29, 44, None), (30, 76, None), (30, 78, None), (30, 
79, None), (31, 67, None), (33, 63, None), (34, 15, None), (34, 25, None), 
(36, 0, None), (37, 66, None), (38, 16, None), (39, 66, None), (39, 74, 
None), (40, 80, None), (41, 52, None), (42, 29, None), (42, 44, None), (43, 
73, None), (44, 29, None), (44, 42, None), (45, 57, None), (47, 51, None), 
(48, 1, None), (49, 21, None), (50, 76, None), (50, 77, None), (51, 47, 
None), (52, 41, None), (53, 12, None), (54, 55, None), (55, 54, None), (56, 
4, None), (57, 45, None), (58, 27, None), (60, 71, None), (61, 12, None), 
(62, 68, None), (63, 33, None), (64, 21, None), (64, 69, None), (65, 69, 
None), (66, 37, None), (66, 39, None), (66, 72, None), (67, 31, None), (68, 
62, None), (69, 21, None), (69, 64, None), (69, 65, None), (71, 60, None), 
(72, 66, None), (73, 43, None), (74, 39, None), (75, 81, None), (76, 30, 
None), (76, 50, None), (76, 77, None), (76, 78, None), (76, 79, None), (77, 
50, None), (77, 76, None), (77, 78, None), (78, 30, None), (78, 76, None), 
(78, 77, None), (79, 30, None), (79, 76, None), (80, 40, None), (81, 75, 
None)])



On Sunday, January 13, 2013 2:36:21 PM UTC-6, Nathann Cohen wrote:

 Hell !!!

 You problem may be solved by copying the graph's edges first :

 dg2 = DiGraph()
 dg2.add_edges(dg.edges())
 dg2.show()

 If it changes nothing there's not much that I can do unless you give us a 
 way to create your graph on our computers :-)

 Nathann

 On Sunday, January 13, 2013 6:07:05 PM UTC+1, crushinator wrote:

 Here is a picture of the problem.  The vertices are too small and the 
 edge arrows are too big.  I  can't tell anything that is going on.  I tried 
 increasing figsize, vertex_size, and the dpi you suggested.  I cannot 
 figure out why this won't work.  Any help is greatly appreciated.  Thank 
 you.

 On Thursday, January 10, 2013 5:32:15 PM UTC-6, David Joyner wrote:

 On Thu, Jan 10, 2013 at 6:07 PM, crushinator joel.m...@gmail.com 
 wrote: 
  Alternatively, is there a way I can make the graphics produced higher 
  resolution? 
  

 I don't understand what you tried and what you didn't. 
 Did you try the dpi option? (It's in th reference manual... 
 search sagemath graph plot dpi option then use find to get 
 the first line with dpi in it.) 
 If so, what was the problem? 

  
  On Thursday, January 10, 2013 3:27:53 PM UTC-6, crushinator wrote: 
  
  Hi, 
  
  I have a problem getting a graph to plot on sage.  I have a graph 
 called 
  dg, a digraph on 100 vertices.  The graph is several components. 
  When I 
  plot dg using the following: 
  
  dg.plot(layout='graphviz', vertex_labels=false, vertex_size = 10) 
  
  I get a graph where the vertices are extremely small and the arrows 
 from 
  the edges dominate the visualization.  I'm trying to make the graph 
 have 
  normal sized vertices and edges. 
  My question is what settings can i use to make the arrows on the 
 edges 
  smaller but visible? 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups 
  sage-support group. 
  To post to this group, send email to sage-s...@googlegroups.com. 
  To unsubscribe from this group, send email to 
  sage-support...@googlegroups.com. 
  Visit this group at http://groups.google.com/group/sage-support?hl=en. 

  
  



-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.