Re: [graph-tool] Vertex text size proportional to the size of the vertex
Yes I saw this before asking. I am sorry that I don't understand it though. What do I write in front of "vertex_font_weight"? Thank you On Dec 12, 2017 2:28 AM, "Tiago de Paula Peixoto" <tiago@skewed.de> wrote: On 11.12.2017 20:19, Snehal Shekatkar wrote:
Worked! How can I make the text bold also?
I'm pretty sure all this is in the documentation.... vertex_font_weight=cairo.FONT_WEIGHT_BOLD -- Tiago de Paula Peixoto <tiago@skewed.de> _______________________________________________ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool
To be complete, if I use what you suggested, it leads to a segmentation fault for me. On Dec 12, 2017 2:30 AM, "Snehal Shekatkar" <snehalshekatkar@gmail.com> wrote:
Yes I saw this before asking. I am sorry that I don't understand it though. What do I write in front of "vertex_font_weight"?
Thank you
On Dec 12, 2017 2:28 AM, "Tiago de Paula Peixoto" <tiago@skewed.de> wrote:
On 11.12.2017 20:19, Snehal Shekatkar wrote:
Worked! How can I make the text bold also?
I'm pretty sure all this is in the documentation....
vertex_font_weight=cairo.FONT_WEIGHT_BOLD
-- Tiago de Paula Peixoto <tiago@skewed.de> _______________________________________________ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool
On 11.12.2017 21:01, Snehal Shekatkar wrote:
To be complete, if I use what you suggested, it leads to a segmentation fault for me.
It's impossible for me to say anything, since I have no idea of what you are doing. Please, post a complete and self-contained example that shows the problem. -- Tiago de Paula Peixoto <tiago@skewed.de>
On 11.12.2017 21:00, Snehal Shekatkar wrote:
Yes I saw this before asking. I am sorry that I don't understand it though. What do I write in front of "vertex_font_weight"?
As everything else so far, this is an argument to graph_draw(), e.g. graph_draw(g, vertex_font_weight=cairo.FONT_WEIGHT_BOLD, vertex_text="foo") -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
Snehal Shekatkar -
Tiago de Paula Peixoto