File Exchange
Try Origin for Free
The Origin Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
Send File to Tech support
All Forums
Origin Forum for Programming
Forum for Python
line type and line color
Note:
Only the poster of this message, and the Moderator can edit the message.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Anti-Spam Code:
Format Mode:
Basic
Help
Prompt
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Red
Yellow
Pink
Green
Orange
Purple
Blue
Beige
Brown
Teal
Navy
Maroon
LimeGreen
Forum:
Forum for Python
Subject:
Message:
* HTML is OFF
*
Forum Code
is ON
Smilies
Hi, I am trying to plot 2 workbooks in one graph, each workbook with its one colour and type. For example, first plot from first workbook to be red and solid line, the first plot from second workbook to be still red, but dash line; second plot from first workbook to be blue and solid line, the second plot from second workbook to be still blue, but dash line. This is what I am trying gl_ind_ORD = gr4[0] p1_ind_ORD = gl_ind_ORD.add_plot(f'{wks_ORD.lt_range()}!(?,1:end)') p1_ind_ORD_KK = gl_ind_ORD.add_plot(f'{wks_ORD_indCB_KK.lt_range()}!(?,1:end)') p1_ind_ORD.set_int('line.width', 8) p1_ind_ORD_KK.set_int('line.width', 8) gl_ind_ORD.axis('y').title = f'\\b(CB-KK ({units}))' gl_ind_ORD.group() p1_ind_ORD.colormap = 'Candy' p1_ind_ORD_KK.colormap = 'Candy' gl_ind_ORD.rescale() gl_ind_ORD.xlim = (min(csv_file['Wavelength']), max(csv_file['Wavelength'])) However, I wasn't able to get what I want. For dash line, I have tried multiple codes, but none of them worked. p1_ind_ORD.set_int('line.type', 2) gl_ind_ORD.set_int('p1_ind_ORD.type', 2)
Check here to subscribe to this topic.
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000