Comments (9)
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.
@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.
Does join
render this issue obsolete?
from chebfun.
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.
Oh, seems you're right. There is no plot
method for chebmatrices.
from chebfun.
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.
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.
Should we close this?
from chebfun.
It can be closed once #478 is merged.
from chebfun.
Related Issues (20)
- chebfun.merge is not scale invariant (vertically)
- Polyeigs throwing the wrong error
- Chebfun2 mtimes bug
- Minor typo in chebop documentation HOT 1
- Newton method in hermpts_rec can be improved
- Implementation of Fourier derivatives (inconsistency between "Spectral Methods in MATLAB" and chebfun) HOT 1
- bug in minimax
- trigcoeffs does not respect domain HOT 2
- Spin with non-constant coefficients HOT 1
- Overheads in piecewise construction
- I am getting this error Non-integer difference in the exponents of the two SINGFUN objects HOT 1
- More efficient representation of trigonometric series possible? HOT 2
- bug in minimax HOT 1
- Diskfun PhaseTwo constructor fails to resolve f(t, r) = r in default maxLength HOT 12
- AAA may return incorrect final error HOT 2
- How to add forcing terms in spin? HOT 1
- spin produces wrong results when solve diffusion-reaction equations HOT 3
- A chebfun3 function failed to pass the vectorCheck() of chebfun2 HOT 3
- chebpoly(1e5) fails HOT 1
- The constructor chebfun3() cannot handle a chebfun3 function as an input in parfor loops.
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 chebfun.