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
How to generate stacked column plot?
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
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2023 (64-bit) Beta7 Operating System: Windows 11 I am trying to use Python to generate a stacked column (aka stacked bar) graph, using a template I have made. However, I am having trouble working out the correct way to import the data to accomplish this. If I use Code Sample 1 (shown below), the two columns are plotted superimposed on each other (rather than stacked). If I use Code Sample 2 (shown below) the two columns are plotted side-by-side rather than stacked. If anyone knows how to do this such that the columns appear stacked, please would you advise me? Code Sample 1 gl.add_plot(data_wks, coly=1, colx=0, type='?') gl.add_plot(data_wks, coly=2, colx=0, type='?') Code Sample 2 gl.add_plot(data_wks, coly=1, colx=0, type='?') gl.add_plot(data_wks, coly=2, colx=0, type='?') gl.group(True, 0, 1)
Check here to subscribe to this topic.
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000