Comments (5)
Hi!
thanks for reporting ... I'll look into it ... I'm not yet decided whether to treat this as a bug or a feature ... I'll let you know!
Best,
JAN
from jkqtplotter.
OK ... I had time to look into this now ... I pressume you're using JKQTPXYParametrizedScatterGraph for you scatter-plot ... So this is what I have to say:
- If you don't need a parametrization of the symbols, you can simply use JKQTPXYLineGraph, with setDrawLines(false). The latter one is way faster!
- yes there is some scaling for drawing the symbols in the legend-keys, so if they are way too thick, the line-width is scaled, so they fit in the available space .... If they fit,no scaling is applied!
- ... BUT: there was a bug in the scaling in JKQTPXYParametrizedScatterGraph, but not in JKQTPXYLineGraph, which I will fix shortly!
I'll let you know when the problem is solved!
from jkqtplotter.
Now the scaling of symbol-sizes and line-widths in the key is controlled centrally by a few functions. The symbol thickness is used as in the plot, as long as it is <0.3min(rect.width,rect.height), the symbols have to be smaller than 0.9min(rect.width,rect.height) and the line-width has to be <0.4*min(...).
The fixes are implemented here:
- JKQTPGraphSymbolStyleMixin::getKeySymbolLineWidthPx()
- JKQTPGraphSymbolStyleMixin::getKeySymbolSizePx()
- JKQTPGraphLineStyleMixin::getKeyLinePen()
Hope that solves your problem.
BTW: I also added a JKQTPXYScatterGraph, which is simpler than JKQTPXYLineGraph and JKQTPXYParametrizedScatterGraph ... if that is of interest for you.
from jkqtplotter.
fixed via 889f95e
from jkqtplotter.
Perfect. I will try it out also this one.
Thanks!
from jkqtplotter.
Related Issues (20)
- Add ability to disable delayed resize event HOT 2
- Fix CMake usage for downstream consumers. HOT 6
- Question about versions/release naming
- Place indicators (or bar chart) under already existing plots HOT 2
- Lock the panning action to certain values HOT 8
- Can't write to PDF files with JKQTPlotter::saveImage() when passing a filename ending in ".pdf" HOT 4
- Are there plans to support 3D? HOT 1
- Create v4.0.1 tag? HOT 3
- Most of the examples fail to launch with MSVC2019 + Qt5 environment HOT 3
- Unnecessary printing of tilde symbol in math HOT 3
- Dangerous warning on MacOS with clang HOT 2
- Cmake parallel builds fail for examples most of the time HOT 4
- qt5.9 support for ubuntu18.04? HOT 1
- Crash in 4.0.2 HOT 7
- Compilation Failure in Windows with MinGW GCC HOT 7
- Is this a correct way of licensing? HOT 2
- Question about rendering unicode in plot labels HOT 6
- size in graph coordinates HOT 3
- Problem with mouse coordinate(s) in JKQTPlotter::wheelEvent() HOT 2
- Clipped Text and Large Key HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jkqtplotter.