18 Commits
Author SHA1 Message Date
Cedric Roux ee2668b7c3 T GUI: add a get_range() API function for xy_plot 2025-08-18 11:53:54 +02:00
Cedric Roux b937983449 T: minor fix: ensure printing is inside the widget 2019-04-03 12:27:31 +02:00
bruno mongazon b016bc229a fixed #320 issue 2018-06-25 18:23:36 +02:00
Cedric Roux 5b6a83fc7f T: some work on XY plot
- change paint function:
  when the XY plot is resized we scale. Previously
  the last range was put in the middle of the new range
  (say when we increase the size).
  We may get aspect ratio changes if the resize is not identical
  vertically and horizontally, but I think this behaviour is more
  'natural'.
- fix a bug:
  the last horizontal tick label was printed to far on the right,
  out of the bouding box of the XY plot. This is not totally fixed
  in the case the label is larger than the XY plot. Now the part
  out of the bounding box will be printed on the left. No big deal,
  make the plot big enough. (Before, even if big enough you had a
  problem.)
- add a new vertical tick display, to be used for throughput mostly.
  See in enb.c the difference between 'input signal' and throughput
  plots (those throughput plots will come in later commits).
2016-12-05 17:37:22 +01:00
Cedric Roux 53ccc0e7ad T: minor bugfix - bad argument type in log 2016-12-01 13:15:34 +01:00
Cedric Roux cbc2164e50 T: bugfix: vertical tick was off by 1 pixel
The problem was visible when DL MCS was set to 20
(do a ping -c 192.172.0.1 -i0.2 to get it). The dots
were not plotted at the exact line of the tick mark.

Not sure the fix is always correct.

No big deal anyway.
2016-11-30 18:01:17 +01:00
Cedric Roux 484cad2431 T: add function xy_plot_set_title 2016-11-25 17:17:39 +01:00
Cedric Roux 187e7906cb use Xft to draw strings 2016-05-25 10:30:25 +02:00
Cedric Roux 48f0c341a1 maybe bugfix, maybe useless: return wanted size if allocated size
is zero in get_dimensions for xy_plot
2016-05-13 15:27:23 +02:00
Cedric Roux 70ebbd7e19 new function xy_plot_get_dimensions 2016-05-11 15:34:44 +02:00
Cedric Roux 24af122475 bugfix: calloc may fail 2016-05-10 11:19:56 +02:00
Cedric Roux b04a448b62 bugfix: calloc arguments' wrong order 2016-05-10 10:01:45 +02:00
Cedric Roux 32b2264fbd support multiple plot per xy_plot 2016-05-09 12:13:18 +02:00
Cedric Roux e4e4647345 cleanup logging in the GUI 2016-05-02 09:47:30 +02:00
Cedric Roux a1aa665841 flip vertically XY plot, it was plotted the other way around 2016-04-12 11:45:15 +02:00
Cedric Roux 71b5c59fd5 minor modification 2016-04-11 18:43:17 +02:00
Cedric Roux 8114422fc5 plot points in XY plot 2016-04-11 18:35:43 +02:00
Cedric Roux 2bb04f0105 first version of the generic gui for the tracer 2016-04-11 11:18:26 +02:00