Ask Your Question
0

Can I add a legend to an IO Graph?

asked 2018-06-28 14:27:08 +0000

PaulOfford gravatar image

Hi,

I have been creating graphs using IO graph. At one point I'm sure, as I moused over the graph, a legend overlayed the top right corner of the chart area. Now I can't seem to get that again.

The problem is that when I save a graph as a .png, the resulting image doesn't include a legend.

How can I get a legend into the .png file?

Thanks and regards...Paul

edit retag flag offensive close merge delete

Comments

That's bizarre. Suddenly the legend has appeared and is now being output in the .png. the situation is this:

If the graph includes a plot with packets as the Y axis unit, the legend appears. If the graph has only plots with Y axis units of Bits, the legend does not appear.

Is this intended?

PaulOfford gravatar imagePaulOfford ( 2018-06-28 15:07:47 +0000 )edit

Is this intended?

My guess is that it isn't and a bug report should be filed. Actually, a bug report should probably file filed even it was intended, because it seems to appear very inconsistently. For example, with Wireshark 2.6.1:

  • No legend appears if only 1 filter, "All packets" is graphed, whether the Y-axis is packets, bits or bytes
  • If another filter is graphed and the Y-axis for both is the same (packets, bits or bytes), then no legend is displayed
  • If another filter is graphed but the Y-axis is different, then the legend is displayed.

So I think, "Why not just always display the legend?"

cmaynard gravatar imagecmaynard ( 2018-06-28 17:54:35 +0000 )edit

Thanks Chris - I will submit a bug report.

PaulOfford gravatar imagePaulOfford ( 2018-06-29 08:34:26 +0000 )edit

Thanks for the work around PaulOfford. This has been driving me nuts for a while now. Hopefully it gets fixed soon.

Also, I agree with cmaynard, the legend should be displayed at all times. Or it could be a simple check box to enable/disable the legend.

sheepdog gravatar imagesheepdog ( 2018-09-27 16:00:52 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-01-03 20:39:44 +0000

cmaynard gravatar image

updated 2019-01-07 15:00:16 +0000

This bug is being tracked as Bug 13854. It was opened by Betty DuBois on June 27, 2017.

As I noted in the bug report, a work-around might be to simply add an extra filter with a different Y Axis as the filters you are actually interested in, e.g., "Legend" with a Display Filter of frame.number == 0 or something such as this that will always evaluate to false. Then change the color to white so it matches the background color. If you don't even want the word "Legend" to appear in the legend, you can just leave the Graph Name blank.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-06-28 14:27:08 +0000

Seen: 2,282 times

Last updated: Jan 07 '19