hmm, yea. but i would need to figure out the y axis scale every time the graphicsView or main window is resised ?
I was trying with this kinda thing :-
rr=ui.graphicsView.mapToScene(ui.graphicsView.frameRect())
left=rr.boundingRect().left()
width=rr.boundingRect().width()
ui.graphicsView.fitInView(left,0,width,300)
rr=ui.graphicsView.mapToScene(ui.graphicsView.frameRect())
left=rr.boundingRect().left()
width=rr.boundingRect().width()
ui.graphicsView.fitInView(left,0,width,300)
To copy to clipboard, switch view to plain text mode
but theres something wrong with it. Every time it runs this bit of code the x axis shrinks a tiny bit i think it is either mapToScene(ui.graphicsView.frameRect()) is not exact enough or theres a rounding problem with the floating value.
I shall have a play with scaling, see what i can see.
cheers.
Bookmarks