Julia: Drawing of a table besides a plot

691 views Asked by At

I have the following requirement and wondering if I could solve it with Julia: draw a SVG plot with up to 4 curves on it. Each curve has to be constructed out of 6 data points. The plot title and the legend should be positioned on the top right corner outside of the plot area.

So far so easy, I'm pretty certain it's solvable with one of the great Julia metapackages. But this one drives me crazy: In the bottom right corner outside of the plot area a table should be drawn. It should contain the values of 6 data points of each curve.

Example:

|     pressure   |  1  |  2  |  3  |  4  |  5  |   6  |
|----------------|-----|-----|-----|-----|-----|------|
| colored line 1 | 3.8 | 3.9 | 4.1 | 5.0 | 9.1 | 10.0 |
| colored line 2 | 4.0 | 4.1 | 5.0 | 7.1 | 8.0 | 11.0 |
|      gal/min   |     |     |     |     |     |      |

The plot and the data table should be placed both inside the SVG. After studying the documentation for hours I'm still clueless how to draw this table. Is this even possible with a plotting library?

0

There are 0 answers