mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
Increased line plot thickness in print mode
This commit is contained in:
parent
7e71366d4e
commit
c659706f2d
@ -987,6 +987,7 @@ gGraph::gGraph(gGraphView *graphview,QString title,QString units, int height,sho
|
|||||||
m_enforceMinY=m_enforceMaxY=false;
|
m_enforceMinY=m_enforceMaxY=false;
|
||||||
rec_miny=rec_maxy=0;
|
rec_miny=rec_maxy=0;
|
||||||
m_showTitle=true;
|
m_showTitle=true;
|
||||||
|
m_printing=false;
|
||||||
}
|
}
|
||||||
gGraph::~gGraph()
|
gGraph::~gGraph()
|
||||||
{
|
{
|
||||||
@ -1038,7 +1039,9 @@ float gGraph::printScaleY() { return m_graphview->printScaleY(); }
|
|||||||
|
|
||||||
void gGraph::drawGLBuf()
|
void gGraph::drawGLBuf()
|
||||||
{
|
{
|
||||||
float linesize=ceil(m_graphview->printScaleY());
|
|
||||||
|
float linesize=1;
|
||||||
|
if (m_printing) linesize=4; //ceil(m_graphview->printScaleY());
|
||||||
for (int i=0;i<m_layers.size();i++) {
|
for (int i=0;i<m_layers.size();i++) {
|
||||||
m_layers[i]->drawGLBuf(linesize);
|
m_layers[i]->drawGLBuf(linesize);
|
||||||
}
|
}
|
||||||
@ -1699,6 +1702,7 @@ QPixmap gGraph::renderPixmap(int w, int h, bool printing)
|
|||||||
QFont fc=*bigfont;
|
QFont fc=*bigfont;
|
||||||
|
|
||||||
|
|
||||||
|
m_printing=printing;
|
||||||
if (printing) {
|
if (printing) {
|
||||||
fa.setPixelSize(30);
|
fa.setPixelSize(30);
|
||||||
fb.setPixelSize(35);
|
fb.setPixelSize(35);
|
||||||
@ -1738,6 +1742,7 @@ QPixmap gGraph::renderPixmap(int w, int h, bool printing)
|
|||||||
defaultfont=_defaultfont;
|
defaultfont=_defaultfont;
|
||||||
mediumfont=_mediumfont;
|
mediumfont=_mediumfont;
|
||||||
bigfont=_bigfont;
|
bigfont=_bigfont;
|
||||||
|
m_printing=false;
|
||||||
|
|
||||||
return pm;
|
return pm;
|
||||||
}
|
}
|
||||||
|
@ -669,6 +669,7 @@ protected:
|
|||||||
GLBuffer * m_quad;
|
GLBuffer * m_quad;
|
||||||
bool m_enforceMinY,m_enforceMaxY;
|
bool m_enforceMinY,m_enforceMaxY;
|
||||||
bool m_showTitle;
|
bool m_showTitle;
|
||||||
|
bool m_printing;
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
|
Loading…
Reference in New Issue
Block a user