Plot a rectangle

Dear all:

I want to graphically represent a solution to a model, which can be done by means of rectangles.
I have tried to find information about this, but what I found did not really help me. Even I found a related topic in this forum, but apparently it was too old and I could not access it.

Any hints on how to plot several rectangles, if you know their coordinates? Would it be possible to enter some text inside the rectangles?

What I look for is like a gantt diagram with rectangles having variable width and height

Thanks !!!

Fede

Hi
Doing this with Gams is not possible. You could either call an r-script from within Gams (I use R for all my plotting) or use Python with embedded code.
Cheers
Renger

Thanks Renger! i will call R as you suggest :slight_smile: