iOS Core Plot"功能转换" - 仅Y轴原点

时间:2016-02-24 15:36:26

标签: ios objective-c core-plot

我现在找不到如何做这一段时间了,我的图表每次都画得很好,但我想向上移动我的图表,就像你有class PropertynewsA(Propertynews): def __init__(self): Propertynews.__init__(self) def save(): file.write(txt) file.close() messagebox.showinfo('Saved!','Your Message has been Saved') self.delete file = open('PropertynewsA.txt', 'r+') #Text file i am using with open('PropertynewsA.txt') as file: # Use file to refer to the file object data = file.read() #date=current text in text file #Text widget Time = strftime("%d %b %Y\n")#getting gmt time txt = Text(self.GenericGui,height=14, width=53,font=('TkDefaultFont',12)) #Creating text widget txt.insert('1.0',data) #showing text from text file in widget txt.tag_configure('format', background='lightblue', font='helvetica 14 bold', relief='raised') txt.focus() txt.place(x=8,y=40) #places text widget 时一样。所以,我想要做的实际上是改变Y原点,所以我可以绘制我的(x,0)点。我不想在X轴上绘制我的点,我看不出那条好线。我希望我的零Y点实际上从第三点开始,但不是同时转换图形。这是我想要做的图片(见绿线和Y点):

enter image description here

1 个答案:

答案 0 :(得分:1)

绘图空间yRange控制可见数据的范围。问题中的图像看起来有location的负一(-1)和length为18.您可以使用axisConstraints来保持x轴的底部情节区。如果您不想使用约束,请将orthogonalPosition设置为location的{​​{1}}。