mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Fix horizontal grid to match Yaxis tickers
This commit is contained in:
parent
90bae964ce
commit
0297e9d601
@ -44,10 +44,10 @@ void gXGrid::paint(gGraph & w,int left,int top, int width, int height)
|
|||||||
|
|
||||||
if (height<0) return;
|
if (height<0) return;
|
||||||
|
|
||||||
QString fd="0";
|
static QString fd="0";
|
||||||
GetTextExtent(fd,x,y);
|
GetTextExtent(fd,x,y);
|
||||||
|
|
||||||
double max_yticks=round(height / (y+15.0)); // plus spacing between lines
|
double max_yticks=round(height / (y+7.0)); // plus spacing between lines
|
||||||
//double yt=1/max_yticks;
|
//double yt=1/max_yticks;
|
||||||
|
|
||||||
double mxy=MAX(fabs(maxy),fabs(miny));
|
double mxy=MAX(fabs(maxy),fabs(miny));
|
||||||
|
Loading…
Reference in New Issue
Block a user