First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Can I add a legend to an IO Graph?

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

PaulOfford's avatar
141
PaulOfford
asked 2018-06-28 14:27:08 +0000
edit flag offensive 0 remove flag 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's avatar PaulOfford (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's avatar cmaynard (2018-06-28 17:54:35 +0000) edit

Thanks Chris - I will submit a bug report.

PaulOfford's avatar PaulOfford (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's avatar sheepdog (2018-09-27 16:00:52 +0000) edit
add a comment see more comments

1 Answer

0

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.

cmaynard's avatar
11.1k
cmaynard
answered 2019-01-03 20:39:44 +0000, updated 2019-01-07 15:00:16 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer