mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2025-01-12 00:40:32 +08:00
FIXED: Barcharts were not filled with cycling patterns properly and the first default symbol was never used (in JKQTBasePlotter::getPlotStyle())
This commit is contained in:
parent
c371899579
commit
7f6c5fc9aa
@ -547,11 +547,15 @@ double JKQTBasePlotter::getAbsoluteYMax() const {
|
||||
}
|
||||
|
||||
void JKQTBasePlotter::addGridPrintingPlotter(size_t x, size_t y, JKQTBasePlotter *plotter) {
|
||||
JKQTPGridPrintingItem i;
|
||||
i.x=x;
|
||||
i.y=y;
|
||||
i.plotter=plotter;
|
||||
gridPrintingList.push_back(i);
|
||||
if (plotter==this) {
|
||||
setGridPrintingCurrentPos(x,y);
|
||||
} else {
|
||||
JKQTPGridPrintingItem i;
|
||||
i.x=x;
|
||||
i.y=y;
|
||||
i.plotter=plotter;
|
||||
gridPrintingList.push_back(i);
|
||||
}
|
||||
}
|
||||
|
||||
void JKQTBasePlotter::clearGridPrintingPlotters() {
|
||||
@ -1074,7 +1078,7 @@ void JKQTBasePlotter::drawSystemYAxis(JKQTPEnhancedPainter& painter) {
|
||||
JKQTBasePlotter::JKQTPPen JKQTBasePlotter::getPlotStyle(int i, JKQTPPlotStyleType type) const{
|
||||
int colorI=-1;
|
||||
int styleI=0;
|
||||
int symbolI=0;
|
||||
int symbolI=-1;
|
||||
int brushI=0;
|
||||
for (int k=0; k<=i; k++) {
|
||||
colorI++;
|
||||
@ -1109,9 +1113,6 @@ JKQTBasePlotter::JKQTPPen JKQTBasePlotter::getPlotStyle(int i, JKQTPPlotStyleTyp
|
||||
if (type==JKQTPPlotStyleType::Barchart || type==JKQTPPlotStyleType::Boxplot || type==JKQTPPlotStyleType::Impulses) {
|
||||
basePenStyle=Qt::SolidLine;
|
||||
}
|
||||
if (type==JKQTPPlotStyleType::Barchart) {
|
||||
basebrushStyle=Qt::SolidPattern;
|
||||
}
|
||||
if (type==JKQTPPlotStyleType::Boxplot) {
|
||||
basebrushStyle=Qt::SolidPattern;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user