[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •[FIXED] edge label on preview
Page 1 of 1

[FIXED] edge label on preview

Posted: 21 Oct 2010 10:30
by paul
Hi there,

I encountered a little paper cut this morning.
I want to export a graph with a specific edge attribute as edge label.

In Overview, no problem I can choose a see my specific label on edges.
But once I switch to preview mode I experiences some problems.

first to be able to see label on edges you should not choose "curved" mode for edges.

Then I couldn't see other label than the "Label" attributes. Even if an alternate attribute had been chosen in the overview, it's not displayed in the preview but the official Label.

I found a workaround thanks to this marvellous new Data Laboratory which allows now to "copy data to another column". So I did copy my attribute to be shown as label inside the official "Label" column and here I am !

I might enter a bug on this issue ?

Paul

Re: edge label on preview

Posted: 21 Oct 2010 12:47
by admin
You can add these features to the Idea List

Re: edge label on preview

Posted: 21 Oct 2010 13:14
by mbastian
I created a bug for this issue. It was small mistake so I fixed it immediately. I also deployed the patch so you can update your Gephi.

Label for curved edges is an improvement. I created a student project idea for arrows on curved edges, we could do the same for the text drawing.

Re: edge label on preview

Posted: 21 Oct 2010 17:23
by paul
great !

thanks for this amazingly quick reaction as usual !

Ok I am going to add something else about labels on the idealist :
to allow line breaks into long-text Labels to improve readability when dealing with text mining graphs.

I tried many line break formats but couldn't find any to indeed wrap the labels in overview.

would that be hard to implement ?

Paul

Re: edge label on preview

Posted: 25 Oct 2010 19:09
by mbastian
No that would be doable I think. One could enable an option to enable the visualization to look for line breaks and display multi line labels. As far as we can obtain the width and the height of any string, its not difficult to then display a centered multi-line labels. Actually, the "org.gephi.visualization.opengl.text.TextUtils" already contains some code to do that, but for some reason it is not used, probably lack of time or bad performance.