Author |
Topic  |
|
AKazak
Russia
1205 Posts |
Posted - 07/17/2022 : 12:07:22 PM
|
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
|
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
|
 |
|
AKazak
Russia
1205 Posts |
Posted - 07/18/2022 : 07:08:06 AM
|
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 |
 |
|
snowli
USA
1414 Posts |
Posted - 07/18/2022 : 11:05:06 AM
|
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 |
 |
|
AmandaLu
439 Posts |
Posted - 07/18/2022 : 11:21:43 PM
|
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
|
 |
|
AKazak
Russia
1205 Posts |
Posted - 07/23/2022 : 10:07:23 AM
|
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 |
 |
|
AKazak
Russia
1205 Posts |
Posted - 07/23/2022 : 10:09:47 AM
|
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 |
 |
|
snowli
USA
1414 Posts |
|
AKazak
Russia
1205 Posts |
|
snowli
USA
1414 Posts |
|
|
Topic  |
|
|
|