The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Graph: grouped plots symbol fill from columns
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 07/17/2022 :  12:07:22 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2023 (64-bit) Beta 2 10.0.0.58
Windows 7 Pro SP1 x64

Greetings!

I have a data sheet with few XYF column triplets, where ? is a categorical column responsible for symbol fill color.

I want to plot all the triplets in such a way that line color depends on long name and symbol fill depends on the corresponding ? column.

Please see a sample OPJU:
https://my.originlab.com/ftp/forum_and_kbase/Images/Graph%20Line%20and%20Symbol%20Fill%202022-07-17.opju

What is the proper way of doing this?

Thank you.

---
Andrey

AmandaLu

439 Posts

Posted - 07/18/2022 :  05:33:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can plot col(B) first, set color mapping to col(C), and then use Batch Plotting to plot all rest columns to the active graph.

1. Highlight col(B) and plot a Line plot. Map symbol color to col(C).


2. right click on Graph window title bar and select Batch Plotting. Set as below:


3. Double click on the Layer1 icon (on the top-left corner) to open the Layer Content dialog. Select all plots on the left and set plot type = Line to add them as line plot. The will plot as a group so the line color increasing.


4. Move the line group on top in the Object Manager.


Thanks,
Amanda
OriginLab Technical Service
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/18/2022 :  07:08:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The problem is that step 3) (grouping) resets the custom symbol mapping.
I want to plot all the triplets in such a way that line color depends on long name and symbol fill depends on the corresponding column.

Is there currently a way of doing this via GUI?

---
Andrey
Go to Top of Page

snowli

USA
1414 Posts

Posted - 07/18/2022 :  11:05:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,

Try this:
1. Plot all dat as grouped as u did.
2. Set symbol to be open circle and fill color to be indexed e.g. C. (all plot will follow same color index)
3. On Group tab, set Edit Mode to be Independent and click OK.
4. Right click 1st plot and choose Color Format.
5. Then click in empty space on graph so no plot is selected.
6. Choose Edit: Paste Format (Advanced).
7. Under Formats to Apply, uncheck All and check Plot Colors.
8. Click the Pencil button.
9. Select Symbol Fill Color row.
10. Check "Apply Selected Properties Only.
11. Click Apply
It will apply such symbol fill color indexing with offset 1 to all plots so all fill colors will use next column for color indexing instead of using col(C).

Basically for grouped plot, when setting some property to be indexing , it's using same column (modifier). But if we set it to be independent, we allow each to be independent. But if i directly copy paste format, line color will be pasted together.

By using paste format advanced, we can pick which property to paste.


If u open Plot Details dialog and choose Graph node on left, then go to Miscellaneous tab, there is "Match Modifiers by" and default is Offset. But it only works in template and copy format.


Thanks, Snow
Go to Top of Page

AmandaLu

439 Posts

Posted - 07/18/2022 :  11:21:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by AKazak

The problem is that step 3) (grouping) resets the custom symbol mapping.
I want to plot all the triplets in such a way that line color depends on long name and symbol fill depends on the corresponding column.




My step3 is to plot the same data AGAIN in a line group. (
Yes, grouping resets the custom symbol mapping. So what I did is to plot the Symbol plots by Batch Plotting to map the color to correct columns, and then plot the same data again as a group of Line plots to increase the line color.

Thanks,
Amanda
OriginLab Technical Service
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/23/2022 :  10:07:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by AmandaLu

quote:
Originally posted by AKazak

The problem is that step 3) (grouping) resets the custom symbol mapping.
I want to plot all the triplets in such a way that line color depends on long name and symbol fill depends on the corresponding column.




My step3 is to plot the same data AGAIN in a line group. (
Yes, grouping resets the custom symbol mapping. So what I did is to plot the Symbol plots by Batch Plotting to map the color to correct columns, and then plot the same data again as a group of Line plots to increase the line color.

Thanks,
Amanda
OriginLab Technical Service




Dear Amanda,

The trick is nice!
However it requires duplicating all the plots in order to simulate the correct symbol fill distributions. This can be inconvenient in many cases.

---
Andrey
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/23/2022 :  10:09:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by snowli

Hi Andrey,

Try this:
1. Plot all dat as grouped as u did.
2. Set symbol to be open circle and fill color to be indexed e.g. C. (all plot will follow same color index)
3. On Group tab, set Edit Mode to be Independent and click OK.
4. Right click 1st plot and choose Color Format.
5. Then click in empty space on graph so no plot is selected.
6. Choose Edit: Paste Format (Advanced).
7. Under Formats to Apply, uncheck All and check Plot Colors.
8. Click the Pencil button.
9. Select Symbol Fill Color row.
10. Check "Apply Selected Properties Only.
11. Click Apply
It will apply such symbol fill color indexing with offset 1 to all plots so all fill colors will use next column for color indexing instead of using col(C).

Basically for grouped plot, when setting some property to be indexing , it's using same column (modifier). But if we set it to be independent, we allow each to be independent. But if i directly copy paste format, line color will be pasted together.

By using paste format advanced, we can pick which property to paste.


If u open Plot Details dialog and choose Graph node on left, then go to Miscellaneous tab, there is "Match Modifiers by" and default is Offset. But it only works in template and copy format.


Thanks, Snow



Dear Snow,

I tried to follow the suggested steps, but stumbled over the following items.

4. Did you mean "Right click 1st plot and choose Copy Format."?

If 4 is correct, then the algorithm works perfectly!
IMHO Paste Format (Advanced) is really powerful and missing in all the competitor software.

---
Andrey

Edited by - AKazak on 07/23/2022 10:13:11 AM
Go to Top of Page

snowli

USA
1414 Posts

Posted - 07/25/2022 :  09:36:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, 4 is right click 1st single plot.

Copy and Paste Format is very sensitive to where you click.
See this blog
https://blog.originlab.com/apply-graph-customization-by-copy-paste-format

and this video
https://www.youtube.com/watch?v=0eruupvR07k&list=PL19E59A649376FB48&index=104

Thanks, Snow
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/25/2022 :  1:42:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by snowli

Yes, 4 is right click 1st single plot.

Copy and Paste Format is very sensitive to where you click.
See this blog
https://blog.originlab.com/apply-graph-customization-by-copy-paste-format

and this video
https://www.youtube.com/watch?v=0eruupvR07k&list=PL19E59A649376FB48&index=104

Thanks, Snow



Dear Snow,

Got it!
Where do I read more about Paste Format (Advanced)?

---
Andrey
Go to Top of Page

snowli

USA
1414 Posts

Posted - 07/25/2022 :  1:44:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Press ? button on top of the dialog, u will be sent to
https://www.originlab.com/doc/Origin-Help/CopyPaste-Format?f=dl

Thanks, Snow
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000