Re: [sage-combinat-devel] Poset labels

2010-05-03 Thread Nicolas M. Thiery
On Mon, May 03, 2010 at 10:09:50AM +0200, Martin Rubey wrote:
> > Yes, that's precisely where dot2tex comes in; otherwise, it does
> > produce latex, but using a spring layout which is no good for a Hasse
> > diagram (and besides ignore edge label sizes).
> 
> great, I downloaded 4.4. and it worked perfectly!  combinat rules!

:-)

And with 4.4.1, you don't even need to install the sage-combinat
patch! Finally!

Cheers,
Nicolas
--
Nicolas M. Thiéry "Isil" 
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-05-03 Thread Martin Rubey
"Nicolas M. Thiery"  writes:

> On Tue, Apr 27, 2010 at 06:34:02PM +0200, Martin Rubey wrote:
>> > sage: version()
>> > 'Sage Version 4.3.3, Release Date: 2010-02-21'
>
> Hmm, I would have expected for this to work, though I did not try
> recently. Your best bet is to install Sage 4.3.4.
>
>> > (thanks :-)
>
> Welcome!
>
>> BTW: plotting works somehow, except for
>>
>> sage: g.set_latex_options(format = "dot2tex")
>
> Yes, that's precisely where dot2tex comes in; otherwise, it does
> produce latex, but using a spring layout which is no good for a Hasse
> diagram (and besides ignore edge label sizes).

great, I downloaded 4.4. and it worked perfectly!  combinat rules!

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-28 Thread Nicolas M. Thiery
On Tue, Apr 27, 2010 at 06:34:02PM +0200, Martin Rubey wrote:
> > sage: version()
> > 'Sage Version 4.3.3, Release Date: 2010-02-21'

Hmm, I would have expected for this to work, though I did not try
recently. Your best bet is to install Sage 4.3.4.

> > (thanks :-)

Welcome!

> BTW: plotting works somehow, except for
>
> sage: g.set_latex_options(format = "dot2tex")

Yes, that's precisely where dot2tex comes in; otherwise, it does
produce latex, but using a spring layout which is no good for a Hasse
diagram (and besides ignore edge label sizes).

Cheers,
Nicolas
--
Nicolas M. Thiéry "Isil" 
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-27 Thread Martin Rubey
Martin Rubey  writes:

> "Nicolas M. Thiery"  writes:
>
>> On Tue, Apr 27, 2010 at 06:10:07PM +0200, Martin Rubey wrote:
>>> Martin Rubey  writes:
>>> 
>>> > "Nicolas M. Thiery"  writes:
>>> >
>>> >>> Could you give me a hint how to apply this patch?  (using patch, or is
>>> >>> there a builtin tool?)
>>> >>
>>> >> sage -combinat install :-)
>>> >
>>> > great.
>>> 
>>> I got:
>>> 
>>> patching file sage/graphs/generic_graph.py
>>> Hunk #6 FAILED at 7833
>>> Hunk #8 succeeded at 7749 with fuzz 2 (offset -158 lines).
>>> 1 out of 8 hunks FAILED -- saving rejects to file
>>> sage/graphs/generic_graph.py.rej
>>> patch failed, unable to continue (try -v)
>>> Kein Benutzername gefunden, nutze mar...@bustopherjones stattdessen
>>> patch failed, rejects left in working dir
>>> errors during apply, please fix and refresh
>>> trac_8513_graph_theory_documentation-abm.patch
>>> Abort
>>> 
>>> is this severe?
>>
>> Version of Sage?
>
> sage: version()
> 'Sage Version 4.3.3, Release Date: 2010-02-21'
>
> Martin
>
> (thanks :-)

BTW: plotting works somehow, except for

sage: g.set_latex_options(format = "dot2tex") 
---
ValueErrorTraceback (most recent call
last)

/home/martin/ in ()

/home/martin/sage-4.3.3-linux-64bit-ubuntu_9.10-x86_64-Linux/local/lib/python2.6/site-packages/sage/graphs/generic_graph.pyc
in set_latex_o
ptions(self, **kwds)
  
   8830 """
   8831 opts = self.latex_options()
-> 8832 opts.set_options(**kwds)
   8833 
   8834 

/home/martin/sage-4.3.3-linux-64bit-ubuntu_9.10-x86_64-Linux/local/lib/python2.6/site-packages/sage/graphs/graph_latex.pyc
in set_options(s
elf, **kwds)
  
320 if kwds:
321 for name, value in kwds.items():
--> 322 self.set_option(name, value)
323 
324 

/home/martin/sage-4.3.3-linux-64bit-ubuntu_9.10-x86_64-Linux/local/lib/python2.6/site-packages/sage/graphs/graph_latex.pyc
in set_option(se
lf, option_name, option_value)  
  
290 """
291 if not(option_name in GraphLatex.__graphlatex_options):
--> 292 raise ValueError( "%s is not a LaTeX option for a
graph." % option_name )
293 if option_value == None:# clear the option, if set
294 if option_name in self._options:

ValueError: format is not a LaTeX option for a graph.
sage: 

and that the graph doesn't look like a Hasse diagram (the arcs (well,
edges actally) connect the right vertices, but that's about it)

Thanks for your fast responses!

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-27 Thread Martin Rubey
"Nicolas M. Thiery"  writes:

> On Tue, Apr 27, 2010 at 06:10:07PM +0200, Martin Rubey wrote:
>> Martin Rubey  writes:
>> 
>> > "Nicolas M. Thiery"  writes:
>> >
>> >>> Could you give me a hint how to apply this patch?  (using patch, or is
>> >>> there a builtin tool?)
>> >>
>> >> sage -combinat install :-)
>> >
>> > great.
>> 
>> I got:
>> 
>> patching file sage/graphs/generic_graph.py
>> Hunk #6 FAILED at 7833
>> Hunk #8 succeeded at 7749 with fuzz 2 (offset -158 lines).
>> 1 out of 8 hunks FAILED -- saving rejects to file
>> sage/graphs/generic_graph.py.rej
>> patch failed, unable to continue (try -v)
>> Kein Benutzername gefunden, nutze mar...@bustopherjones stattdessen
>> patch failed, rejects left in working dir
>> errors during apply, please fix and refresh
>> trac_8513_graph_theory_documentation-abm.patch
>> Abort
>> 
>> is this severe?
>
> Version of Sage?

sage: version()
'Sage Version 4.3.3, Release Date: 2010-02-21'

Martin

(thanks :-)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-27 Thread Nicolas M. Thiery
On Tue, Apr 27, 2010 at 06:10:07PM +0200, Martin Rubey wrote:
> Martin Rubey  writes:
> 
> > "Nicolas M. Thiery"  writes:
> >
> >>> Could you give me a hint how to apply this patch?  (using patch, or is
> >>> there a builtin tool?)
> >>
> >> sage -combinat install :-)
> >
> > great.
> 
> I got:
> 
> patching file sage/graphs/generic_graph.py
> Hunk #6 FAILED at 7833
> Hunk #8 succeeded at 7749 with fuzz 2 (offset -158 lines).
> 1 out of 8 hunks FAILED -- saving rejects to file
> sage/graphs/generic_graph.py.rej
> patch failed, unable to continue (try -v)
> Kein Benutzername gefunden, nutze mar...@bustopherjones stattdessen
> patch failed, rejects left in working dir
> errors during apply, please fix and refresh
> trac_8513_graph_theory_documentation-abm.patch
> Abort
> 
> is this severe?

Version of Sage?
Nicolas
--
Nicolas M. Thiéry "Isil" 
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-27 Thread Martin Rubey
Martin Rubey  writes:

> "Nicolas M. Thiery"  writes:
>
>>> Could you give me a hint how to apply this patch?  (using patch, or is
>>> there a builtin tool?)
>>
>> sage -combinat install :-)
>
> great.

I got:

patching file sage/graphs/generic_graph.py
Hunk #6 FAILED at 7833
Hunk #8 succeeded at 7749 with fuzz 2 (offset -158 lines).
1 out of 8 hunks FAILED -- saving rejects to file
sage/graphs/generic_graph.py.rej
patch failed, unable to continue (try -v)
Kein Benutzername gefunden, nutze mar...@bustopherjones stattdessen
patch failed, rejects left in working dir
errors during apply, please fix and refresh
trac_8513_graph_theory_documentation-abm.patch
Abort

is this severe?

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-27 Thread Sébastien Labbé
>> x.element gives you the element underlying the node.
>
> sage: x.element()
> ---
> TypeError                                 Traceback (most recent call
> last)
>
> /home/martin/ in ()
>
> TypeError: 'SkewPartition_class' object is not callable

Try with no parenthesis... I don't know why it is an attribute and not
a method as usual...

Sébastien

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-27 Thread Martin Rubey
"Nicolas M. Thiery"  writes:

>> Could you give me a hint how to apply this patch?  (using patch, or is
>> there a builtin tool?)
>
> sage -combinat install :-)

great.
>
> For graphviz/dot2tex, see the trac ticket.
>
>> Yet another question: when I take the level_sets, how can I make the
>> elements into skew partitions again?
>
> x.element gives you the element underlying the node.

sage: x.element()
---
TypeError Traceback (most recent call
last)

/home/martin/ in ()

TypeError: 'SkewPartition_class' object is not callable

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-27 Thread Nicolas M. Thiery
> Could you give me a hint how to apply this patch?  (using patch, or is
> there a builtin tool?)

sage -combinat install :-)

For graphviz/dot2tex, see the trac ticket.

> Yet another question: when I take the level_sets, how can I make the
> elements into skew partitions again?

x.element gives you the element underlying the node.

Cheers,
Nicolas
--
Nicolas M. Thiéry "Isil" 
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-27 Thread Martin Rubey
"Nicolas M. Thiery"  writes:

> On Tue, Apr 27, 2010 at 04:13:08PM +0200, Martin Rubey wrote:
>> I was plotting a poset, vertices labelled by skew partitions.
>> Unfortunately, the labels overlap.  Is it possible to "zoom" the plot?
>
> Nope.
>
> But with the #7004 patch applied and dot2tex and graphviz, you can get
> nice latex output:

Could you give me a hint how to apply this patch?  (using patch, or is
there a builtin tool?)

Yet another question: when I take the level_sets, how can I make the
elements into skew partitions again?

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Poset labels

2010-04-27 Thread Nicolas M. Thiery
On Tue, Apr 27, 2010 at 04:13:08PM +0200, Martin Rubey wrote:
> I was plotting a poset, vertices labelled by skew partitions.
> Unfortunately, the labels overlap.  Is it possible to "zoom" the plot?

Nope.

But with the #7004 patch applied and dot2tex and graphviz, you can get
nice latex output:

sage: P = posets.IntegerPartitions(4)
sage: g = P.hasse_diagram()
sage: g.set_latex_options(format = "dot2tex")
sage: view(g, tightpage = True, viewer = "pdf")

Admitted, that's still very much perfectible ...

Cheers,
Nicolas
--
Nicolas M. Thiéry "Isil" 
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



[sage-combinat-devel] Poset labels

2010-04-27 Thread Martin Rubey
Hi!

I was plotting a poset, vertices labelled by skew partitions.
Unfortunately, the labels overlap.  Is it possible to "zoom" the plot?

thanks,

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.