Giter Club home page Giter Club logo

Comments (4)

efwb001 avatar efwb001 commented on July 18, 2024

Reproducible regardless of whether using software or hardware rendering.

K>> opengl info
Version: '4.3.0 - Build 10.18.14.4414'
Vendor: 'Intel'
Renderer: 'Intel(R) HD Graphics 4600'
RendererDriverVersion: '10.18.14.4414'
RendererDriverReleaseDate: '23-Mar-2016'
MaxTextureSize: 16384
Visual: 'Visual 0x07, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 8 samples)'
Software: 'false'
HardwareSupportLevel: 'full'
SupportsGraphicsSmoothing: 1
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
Extensions: {208x1 cell}
MaxFrameBufferSize: 16384

from gramm.

efwb001 avatar efwb001 commented on July 18, 2024

buggyfigure

from gramm.

piermorel avatar piermorel commented on July 18, 2024

Reproduces on Mac 2015b version... very strange bug! From the looks of it it seems that Matlab's fit() function along with predint() doesn't handle the absence of 'StartPoint' values very well in that case. You do get a warning from Matlab though!

This is solved by providing 'StartPoint' values to stat_fit:
g = gramm('x', x, 'y', y);
g.geom_point('alpha',0.2)
g.stat_fit('fun',@(a,b,x)a.*x+b,'StartPoint',[0 0]);
g.draw();

The 'fun',@(a,b,x)a.*x+b part is not needed as this is the default fitted function. I just put it here to show that there are two parameters a and b and that is why 'StartPoint' is a vector of length 2. The function can be changed!

from gramm.

efwb001 avatar efwb001 commented on July 18, 2024

Thanks piermorel, that's done the trick! I really appreciate the help.

from gramm.

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.