Skip to content

Commit 20a49e2

Browse files
committed
update python online doc
1 parent 68083e6 commit 20a49e2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/originpro/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_int(self, prop):
6868
"""
6969
Get object's LabTalk int property
7070
Parameters:
71-
prop(string):int prop line
71+
prop(string):int prop like
7272
[cmap.stretchpal, cmap.linkpal symbol.kind], details on Origin objects' reference pages
7373
Returns:
7474
object's int property

src/originpro/graph.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, obj, ax):
4040
types = {
4141
'x':2,'y':4,'z':1
4242
}
43-
self.type = types[ax]
43+
self.type = types[ax[0]]
4444
self.ax = ax
4545

4646
@property
@@ -879,7 +879,10 @@ def axis(self, ax):
879879
(Axis)
880880
881881
Examples:
882-
ax = lay.axis('x')
882+
graph = op.new_graph()
883+
layer2 = graph.add_layer(2)
884+
ay=layer2.axis('y2')
885+
ay.title = 'Right value'
883886
"""
884887
return Axis(self.obj, ax)
885888

src/originpro/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def graph_list(select='f', inc_embed=False) -> List[GPage]:
403403
if select == 'o' and not BasePage(page).is_open():
404404
continue
405405
if page.GetType() == po.OPT_GRAPH:
406-
glist.append(GPage(page))
406+
glist.append(_make_page(page))
407407
else:
408408
for page in po.GraphPages:
409409
if not inc_embed and page.GetNumProp('isEmbedded'):

0 commit comments

Comments
 (0)