Giter VIP home page Giter VIP logo

Comments (5)

jkriege2 avatar jkriege2 commented on September 13, 2024 1

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.

jkriege2 avatar jkriege2 commented on September 13, 2024

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:

  1. If you don't need a parametrization of the symbols, you can simply use JKQTPXYLineGraph, with setDrawLines(false). The latter one is way faster!
  2. 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!
  3. ... 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.

jkriege2 avatar jkriege2 commented on September 13, 2024

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(...).

Here are two examples:
scatter_error
paramscatterplot

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.

jkriege2 avatar jkriege2 commented on September 13, 2024

fixed via 889f95e

from jkqtplotter.

sim186 avatar sim186 commented on September 13, 2024

Perfect. I will try it out also this one.

Thanks!

from jkqtplotter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.