How to plot transparent lines / shades in xmgrace / UVCDAT / pygrace

Dear All,

Problem :

How to plot transparent lines or shaded region in xmgrace ?

For example, look at the below plot.

Solution :

I had to plot transparent lines in xmgrace wherever overlaps occurs.

In Grace / xmgrace there is no transparent setting.

https://github.com/pygrace/pygrace/issues/4 suggest 3 ways to achieve this.

I took the 2nd option such as “create three different regions“.
i.e.
1. Regions of Overlap between two data sets a & b
2. Only data set a excluding overlap
3. Only data set b excluding overlap

I written the function “getOverlap
Sourcehttps://gist.github.com/arulalant/b7a1cef170a2e25571f7

Now see the below plot and compare with the above one, you can see different color in the overlap regions.

Result Plot:
Same plot with overlap region with different color (chosen between red and black color)

Same getOverlap function useful to plot the shaded overlap region also.

To set custom RGB color in grace look my previous post here

 

Regards,
Arulalan.T

Advertisements

About arulalant

Currently working as "Project Scientist – C" in National Centre for Medium Range Weather Forecasting (NCMRWF), MoES, Noida, India
This entry was posted in xmgrace and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s