Yes, not so obvious- it took me a minute.
import originpro as op
# Set up data
book = op.new_book('w')
wks = book[0]
wks.from_list(0, [1,2,3,4,5], axis='X')
wks.from_list(1, [1,2,3,4,5], axis='Y')
wks.from_list(2, [0.15,0.12,0.13,0.10,0.14], axis='E')
#Create graph and get 1st layer
graph = op.new_graph()
lay = graph[0]
# Add a scatter plot
# For `type` see: https://www.originlab.com/doc/LabTalk/ref/Plot-Type-IDs
lay.add_plot(obj=wks, coly=1, colx=0, type=201)
# Now, a bit of trickery.
# You have to add the same plot again, but use the error column as `colz`
lay.add_plot(obj=wks, coly=1, colx=0, colz=2, type=201)
lay.rescale()
Thanks,
Chris Drozdowski
Originlab Technical Support