GithubHelp home page GithubHelp logo

Plotting chebmatrices about chebfun HOT 9 CLOSED

chebfun avatar chebfun commented on June 5, 2024
Plotting chebmatrices

from chebfun.

Comments (9)

rothos avatar rothos commented on June 5, 2024

This is because your code concatenates the chebfuns column-wise rather than row-wise, resulting in a single chebfun with a breakpoint in the middle. Changing the semicolon to a comma yields a quasimatrix, which I think is what you want.

x = chebfun('x');
xx = [x, 2*x];
plot(xx, '.-')

from chebfun.

nickhale avatar nickhale commented on June 5, 2024

@asgeirbirkis 's approach returns a chebmatrix, but it is still plotable.

In any case, I can't reproduce the problem. I get a blue and green line with
>> plot([x ; 2*x], '-')

However, I get only blue dots with
>> plot([x ; 2*x], '.-')

from chebfun.

rothos avatar rothos commented on June 5, 2024

Does join render this issue obsolete?

from chebfun.

nickhale avatar nickhale commented on June 5, 2024

It seems that there's no longer any support at all for plotting chebmatrices?

>> x = chebfun('x');
>> plot([x ; 2*x], '-')
Error using plot
Conversion to double from chebmatrix is not possible. 

from chebfun.

rothos avatar rothos commented on June 5, 2024

Oh, seems you're right. There is no plot method for chebmatrices.

from chebfun.

rothos avatar rothos commented on June 5, 2024

How should plot work for chebmatrices? Should it be a spy plot, like in linopΒ β€” perhaps with the special case that if everything is a chebfun then plot like a quasimatrix?

from chebfun.

asgeirbirkis avatar asgeirbirkis commented on June 5, 2024

To plot a chebmatrix only consisting of chebfuns, one can do
plot(chebfun(chebmatrix)). We probably want a spy-like plot for the more
general case.

-A
On 23 Apr 2014 14:07, "Hrothgar" [email protected] wrote:

How should plot work for chebmatrices? Should it be a spy plot, like in
linop β€” perhaps with the special case that if everything is a chebfun then
plot like a quasimatrix?

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-41152981
.

from chebfun.

Hadrien-Montanelli avatar Hadrien-Montanelli commented on June 5, 2024

Should we close this?

from chebfun.

nickhale avatar nickhale commented on June 5, 2024

It can be closed once #478 is merged.

from chebfun.

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.