Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

learn more… | top users | synonyms (12)

13
votes
2answers
382 views

How to speed up the plotting of B-spline curve?

Three months ago, I asked a quesion about B-Spline basis function here, Today, I used this function to plot B-spline curve. The definition of $N_{i,p}$ ...
1
vote
4answers
396 views

Mapping Contour Plot onto ListPlot3D (or by using color variations) [closed]

I am trying to overlay a contour plot I have created on a ListPlot3D graph. I have seen a few questions answered on this website that answer my basic question. ...
3
votes
2answers
121 views

Toggle plot visibility of dynamic number of data sets

I have multiple curves in my plot, and want to be able to toggle their visibility off/on. Which I got to work thanks to a different post. ...
6
votes
0answers
183 views

Kernel sometimes quit after second evaluation of ListVectorPlot

But introduced in 10.0.0 and persisting through 10.3.1 In Mathematica 10.01 Linux x386 execution of the expression ...
3
votes
1answer
253 views

How can I combine two color schemes for plotting?

I want to use ListContourPlot to display all negative values using one colorscheme and all positive values using another color scheme. This question Define a color function using Piecewise gives some ...
3
votes
3answers
188 views

Plot a bunch of lines in 3D from point data

I have a 12*25 array, wherein each entry is of the form $\{x,y,z\}$. So 12 different $x$ values, 25 different $y$ values and 12*15 $z$ values in all. I'd like to plot 12 curves of various $x$ values ...
3
votes
2answers
650 views

Color a Function by its Derivative

Mathematica's ColorFunction seems to struggle with coloring a function "y" by its derivative D[y,x]. This is a seemingly simple task, but Mathematica can't handle it. While I can certainly evaluate ...
1
vote
0answers
42 views

Join a surface and a density plot [duplicate]

My question is if it's possible to do something like this with Mathematica: I know that it is possible to plot a surface with Plot3D and a 2D plot with DensityPlot, so I was wondering how to join ...
0
votes
1answer
70 views

Plot of the set complex numbers [duplicate]

I want to show this set (eigenvalues of my matrix): ...
1
vote
0answers
159 views

ListPlot3D keeps crashing

I have some data, and I want to plot it by ListPlot3D: ...
6
votes
1answer
377 views

VectorPlot3D - vectors starting at points

Normally the vectors in VectorPlot3D ar attached the middle. How to get them attached at the beginning (what is typical conventions in most textbooks) by use of VectorPlot3D ?
8
votes
3answers
236 views

Multiple bwspec for BoxWhiskerChart

If I want to make a horizontal boxplot (with outliers) for y: ...
3
votes
2answers
321 views
2
votes
2answers
548 views

How to show surfaces as a implicit plot in 3d?

I was trying to show a feasible region with these lines: ...
1
vote
1answer
107 views

How to convert cumulative to incremental for plot

Trying to show a plot of a power function $Y = a X^b$, where $Y$ is cumulative cost and $X$ is cumulative shipments where we'd like to see the incremental cost. For $X_1$ the cost is $Y_1$, for $X2$ ...
1
vote
1answer
59 views

Compute the evolution of percentages from a data file

My data is stored in external .out files which contain six columns and a large number of rows. I know that I have to provide a small sample but the structure of my data is so unique, so I provide the ...
6
votes
2answers
340 views

How to make a 2D plot of 3 variables (sample picture attached)

Is it possible to plot that kind of graph in Mathematica? (picture attached) If yes, it can be used to visualise a simple "balance system" of the form: X = f[e]; <...
0
votes
2answers
167 views

Ploting a topology that accepts saddle point in 3 dimensional plot [closed]

In order to visualize a saddle point, a common example given by Wikipedia is $z=x^2-y^2$. Plot3D[x^2 - y^2, {x, -5, 5}, {y, -5, 5}] I would like to have a 3d ...
1
vote
2answers
345 views

3D plot of two spheres with constraint

I intended to plot two 3D volumes of two spheres, each centered around $(x_0,y_0,z_0)$ and $(x_1,y_1,z_1)$, respectively. Here the reference points must be selected as $x_0+y_0+z_0=1$ and $x_1+y_1+z_1=...
0
votes
1answer
125 views

Superpose a map and a region plot

I would like to add on a map of city a region plot, which is this one in this case : ...
4
votes
1answer
112 views

LogLogPlot plugs in zero

Bug introduced in 10.0 and fixed in 10.0.2 In testing the answers to Plot result of non analytical-integral in V10.0.1, I came across this behavior of LogLogPlot....
3
votes
2answers
84 views

Forward function arguments to built-in Plot[]

Suppose I need to write a function to plot the real and imaginary part of some function (just an example). I want to define a function foo so that ...
6
votes
2answers
554 views

Awful styling in MMA10's Plot

Switching to MMA10, I'd want to produce a plot using this code: ...
2
votes
2answers
235 views

Plot result of non analytical-integral

I have the following function: h = 1; c = 1; k = 1; B2 = (2*h*c^2)/(x^5 (Exp[(h*c)/(x*k*T)] - 1)); (someone can see that this integral is the Planck function). ...
1
vote
1answer
154 views

How to apply two kinds of Plot styles in single graph

My version is 9.0 I want to apply ColorData and Line Width styles at the same time, like the ColorTheme Function new in 10.0, but there is always errors. Codes under here: ...
2
votes
1answer
80 views

How to make RegionPlot3D automatically choose PlotRange?

I'm looking at the winning one-liners of 2014, this one inparticular: ...
3
votes
2answers
103 views

How do I use an image as a `ChartLabel`?

I'm trying to use an image as a ChartLabel and I'm getting strange results. Here is a bar chart, with labels, that looks ok: But when I try to replace the "A" ...
4
votes
1answer
174 views

spherical histogram for 3D object

I want to develop a shperical histogram for 3D object. Given a 3D object, I put it in a cylinder where its axis pass through the centroid of the object. The cylinder is sampled into a number N of ...
4
votes
2answers
320 views

Embedded Graphics: General Relativity

Is there a way to make the following graph with two dimples? Like the central indent and another indent to the side to simulate a central mass like the sun and another smaller mass like the Earth in ...
1
vote
2answers
161 views

Intersection with FindInstance

How to find individual root parameters pair ( t, T) to find curve intersections using FindInstance? Hopefully it would output two, instead of 6 pairs in the following: ...
16
votes
2answers
790 views

How to connect discrete points and make them become continuous curve?

Given that I have two variables $\theta,t$, for the varible $t$, $\theta$ always owns several values. Namely, $$\{t,\theta_1,\theta_2,\theta_3,\theta_4...\}$$ where $t$ in the interval$[0,1]$ and $\...
13
votes
1answer
254 views

Rapid density estimation and rendering of decision regions

I would like to create an interactive demonstration using Manipulate[] that illustrates a fundamental concept in pattern classification and machine learning. This ...
-6
votes
1answer
103 views

Plot 2 student T distributions with different center values

Plot 2 student T distributions with different center values µ, but same DOF. The center values,µ has to be 45 and 48, DOF shall be 9.
2
votes
2answers
115 views

Trouble implementing a SOFM (Self Organizing Feature Map) [closed]

I have been given some Mathematica code to use to implement a 3x3 SOFM and see how it changes when I alter 2 variables, lambda and gamma. This is my first time using mathematica so I am a bit confused ...
1
vote
1answer
146 views

Polar image plot

I would like to perform the polar plot of an electron microscope contrast transfer function, into a black and white image. I have used the equation ...
5
votes
1answer
284 views

multiple or variable x scales in [list]plot

I need to make a plot (in this case a ListPlot) in which the x (horizontal) scale varies: either piecewise linear or a single nonconstant function. The purpose is to plot data for graphs like this one:...
4
votes
2answers
316 views

How to plot an implicit value funtion

Previous question has been solved (Gap in a continuous plot). Here is a new related question. ...
0
votes
2answers
74 views

trouble with adding a legend to a plot

I am having trouble with adding a legend to a plot. this is my code,I tryed to use serval things,like ...
2
votes
2answers
146 views

Using ListPlot and lists of Associations

I have a list of associations : ...
1
vote
1answer
256 views

Showing separate surfaces

The XYZPipeJunction is removed using circular trig functions from Both. ...
2
votes
4answers
217 views

Problem with ContourPlot [Not smooth curve] [closed]

Here is my code ...
13
votes
5answers
807 views

Gap in a continuous plot

Why do I get a gap in the plot below and how can I fix it? (If you are interested in it, you can see a new related question: How to plot an implicit value funtion, which is also a little chanlenging) ...
4
votes
2answers
245 views

How to plot this region?

Consider the $2\times 2$ matrices \begin{align} A=\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix} \end{align} and \begin{align} B=\begin{bmatrix} b_{11} & b_{12} \\ b_{...
3
votes
1answer
672 views

List Contour Plot: Delete some contour lines, but keep the colors

I'm trying to make a Contour plot of a set of data of the kind: $(x,y,f(x,y))$ What i'd like to do is to remove the majority of the iso-line and just leave two of them, but keeping the changing of ...
3
votes
1answer
184 views

How to make a diagnostic plot for the regression?

Context I am interested in LinearModelFit, and would like to make diagnostic plots using Mathematica. I cannot find them in Mathematica document center. For example, the following R program makes ...
2
votes
2answers
460 views

The graph of inverse function $f^{-1}(y)$

Show that $f:I=(-1,1) \rightarrow \mathbb{R},$ it follows that $$ f(x)=\begin{cases} \quad1-x & \text{ as } -1<x\leq 0, \\ \frac{{x}^{-1}+ \lfloor {x}^{-1}\rfloor}{1+{x}^{-1}+\lfloor {x}^{-...
3
votes
2answers
470 views

Plotting boundary of piecewise function in ContourPlot

I am trying to do a ContourPlot of the following function: $$\psi=\begin{cases}\left(\sqrt{x^{2}+y^{2}}-\frac{0.25^{2}}{\sqrt{x^{2}+y^{2}}}\right)\frac{y}{\sqrt{x^{...
10
votes
1answer
657 views

Moving polygon on path curve to create 3D shape

How can I move some polygon list = {{0, 0}, {0, 15}, {7, 13}, {2, 13}, {2, 5}, {5, 5}, {5, 3}, {2,3}, {2, 0}}; Graphics[{Black, Polygon[list]}] so it follow some ...
3
votes
1answer
282 views

Rescaling and reorienting Matrix Plot axes

I have implemented a numeric Laplace Solver in C++ and am trying to graphically represent the validity of my method. I have outputted the grid from C++ and imported it into Mathematica to get the ...