Plot a rectangle

questions about GAMS' tools
Post Reply
perea@eio.upv.es
User
User
Posts: 9
Joined: 6 years ago

Plot a rectangle

Post by perea@eio.upv.es »

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
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Plot a rectangle

Post by Renger »

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
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
perea@eio.upv.es
User
User
Posts: 9
Joined: 6 years ago

Re: Plot a rectangle

Post by perea@eio.upv.es »

Thanks Renger! i will call R as you suggest :)
Post Reply