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

learn more… | top users | synonyms (4)

8
votes
3answers
458 views

What is wrong with my expression for compiling?

Following code was translated from a snippet matlab code. Without compiling it worked slowly. I want to compile it, but am getting a numerical error. How do I compile this in a correct way? ...
-2
votes
3answers
287 views

Plotting DSolve results

I am attempting to make a plot of the solution an ODE. I want to plot the solution using PolarPlot, x is the polar angle in ...
6
votes
2answers
339 views

NDSolve Plotting issue

I am trying to solve a system of ODEs with one extra boundary condition. ...
1
vote
1answer
135 views

Exporting a Table of Graphics into Individual Files [duplicate]

The command Table[Polt[Sin[k x],{x,1,10}],{k,1,30}] generates a list of graphics. I want to export each list item as an individual jpg file, named according to ...
1
vote
1answer
189 views

Problem with manipulation and plot

I want to make my function trace the hypotrochoid through one period of its motion and trying to change the color of the trace, color of the radius, and change the color of the dot on it so I can view ...
2
votes
4answers
683 views

ListPlot multiple datasets over same x-values

Is there a better way to enter my data into a list plot? ...
2
votes
1answer
346 views

How to make a 3D-Plot from 2D-interpolated data

I have data of the form {x,y} for different concentrations. Therefore I added the concentration as z, resulting now in ...
0
votes
3answers
404 views

Plotting confidence intervals

The documentation for PDF has an example for plotting a confidence interval of a standard normal distribution: ...
-2
votes
1answer
162 views

Manipulate and Plot using conditional, like if [closed]

I'd like to plot a number of functions that are linked by two parameters. However, the evaluation of these functions over the defined interval should be carried out only for certain values of these ...
0
votes
0answers
65 views

How can I plot the characteristic polynomial? [duplicate]

For example, I have: CharacteristicPolynomial[m, x] 0.5 + 0.1 x + x^2 But ...
1
vote
1answer
94 views

Not getting the range I want when plotting a function with Show [duplicate]

I have a problem with plotting a piecewise defined function with "Show". My code is ...
0
votes
0answers
163 views

Linear Stability Analysis Routine. Normal Modes in NDSolve

I want to make the linear stability analyis of a nonlinear system of PDEs. So for example then I want to plot what happens to the amplitudes of the modes. To do that I need to solve my equations with ...
9
votes
3answers
441 views

How to visualize the interior of a complicated 3d plot

I have an external data file (can be downloaded here: link 1 or link 2) which contains a dense grid of initial condition in the (x,y,z) space. I read it with Mathematica and plot these initial ...
3
votes
1answer
297 views

Plotting a Gravity-Field [duplicate]

I try to plot a 2D gravity field or something similar in the form like $r/|r|^3$ with the standart builtin VectorPlot function: ...
0
votes
0answers
119 views

Positioning Labeled points in ListPlot gives unexpected results and errors

Original question can be seen in the edit history.... UPDATE: a simpler example - same "problem" ...
0
votes
1answer
112 views

Showing the value a plotted function achieves at the right-most point of the plot domain

I'm plotting results from NDSolve, and I'd like to clip them with their value at the point where the line is clipped. So where the curve ends at the edge of the plot, there would be a number ...
0
votes
1answer
233 views

Code to give center of circle given three points in 2D? [duplicate]

does anyone know how to make a function C(p1,p2,p3)=center of circle that goes through p1, p2, and p3? This is in 2D Sorry this is poorly written but I ...
0
votes
1answer
74 views

How can I influence the elements plotted in a BubbleChart depending on the tuple plotted?

In a BubbleChart, how can influence the elements plotted depending on a value in the tuple plotted? I want to create a BubbleChart from the following data: ...
0
votes
1answer
100 views

Make the y-axis of a plot be in terms of an arbitrary parameter instead of a number?

Sorry if the title is wordy. Basically what I am asking would probably be easier if I just use an example. Say I wanted to plot f(x) = Asin(x) and have the graph come up with the sine function, and ...
1
vote
2answers
170 views

Opacity and overlapping points on ListPlot3D

I am plotting a dataset on ListPointPlot3D, and in order to give an idea of density of points I used opacity of 0.5. The problem is that that while the opacity of points behind one another is added, ...
1
vote
1answer
487 views

How to rotate the z label in 3D plots

Let's take the following simple and funny case ...
0
votes
2answers
155 views

What's wrong with my graph input?

So I saw this picture on my book and it was left as an exercise to figure out. This is what I have so far, but I'm not sure where I went wrong. ...
4
votes
1answer
165 views

How to prevent axes label and tick labels from being placed inside a 3D plot

Consider the following toy-code: ...
2
votes
1answer
87 views

What is the need for function parameters? Many possible inputs

If I have many possible variables related to one another, why do I need to define my function with parameters for plotting? For example, if I have an equation like: ...
2
votes
3answers
786 views

How do you plot level curves describing a 3d surface on the x-y plane?

I am trying to plot several level curves of the cone: [x=ucos[v], y=usin[v], z=u],[0<=u<=2,0<=v<=2Pi] in the x-y plane. Does anyone know how to do this? Thanks
0
votes
3answers
167 views

Labeling different curves on a LogLinearPlot

I have created a couple of two-variable plots of the form f(x,y)=x*y where there's a number of result curves, each representing an answer (image example below). ...
9
votes
1answer
1k views

Logarithmic scale in a DensityPlot and its legend

I was recently faced with the task of creating a DensityPlot with a logarithmic colour scale, and with providing it with an appropriate legend. Since I could not find any resources to this effect on ...
1
vote
1answer
148 views

Plotting - recursive

Slightly clearer, hopefully: I would like to plot Solve[Normal[Series[E^(n x), {x, 0, n}]] == 0 for incrementally increasing n, and show all plots overlayed. Here is my effort with up to n=63 using ...
4
votes
1answer
287 views

ListPlot3D of a set of points in a non-convex region

I would like to plot a set of points in the same style as ListPlot3D does, but only in a non-convex region that I can specify (e.g. using a ...
3
votes
1answer
230 views

Specifying coordinates for Inset on a LogPlot

If I use Epilog->Inset within a Plot, the coordinates specified within that Inset match ...
4
votes
1answer
153 views

Dark artifacts in mathematica plot

When plotting in Mathematica I just got some "dark artifacts". Here is my code: ...
1
vote
1answer
165 views

Show multiple plots with single variable

Using the same example code as in this question, is it possible to show all 10 plots (ie, each step of the manipulation) simultaneously? If a manipulate function is a series of listplots based on a ...
8
votes
6answers
640 views

How to draw symmetrical parts of a circle

Let's consider the following simple case: ...
0
votes
1answer
81 views

How do you ContourPlot3D an implicit function of x,y, and z?

This is what I am trying to do: ContourPlot3D[4 Log[x^2 + y^2 + z^2] == 1, {x, -10, 10}, {y, -10, 10}, {z, -10, 10}] but all I get is the empty box. Can anyone ...
2
votes
2answers
297 views

Is there a way to plot a single level curve of a function of x and y through a given point?

For example, I am trying to plot the single level curve of f(x,y)=xsin[y/x]+ysin[2x] that goes through the point (3pi,3pi). Can anyone show me how to do this?
4
votes
3answers
2k views

How can I save both the plot and the legend together?

In this example, How can I punt the Legend INSIDE the graph. Because when I save the graph, only save the graph BUT not save the legend. ...
2
votes
2answers
168 views

Plot3d of explanation of partial partial derivatives

I want to plot a two functions together that looks like this: But I am only able to come up with this;"which is clearly wrong" ...
1
vote
1answer
140 views

How to color ParametricPlot3D based on the parameter?

I have a set of ODEs I am solving, and then plotting (several) trajectories of in ParametricPlot3D. I want to have a color of each plot reflect the time (i.e. the Parameter) at that point. I tried ...
1
vote
1answer
137 views

How to force the RegionPlot to shade a narrow region?

I have an interactive demonstration, which (very simplified to leave out unnecessary details) looks as follows: ...
1
vote
3answers
195 views

How do i draw a hemisphere using SphericalPlot3D?

I want to know what ranges must be set for theta and to get a hemisphere of radius 5 from SphericalPlot3D.
7
votes
3answers
645 views

How do I create a histogram with unequal bin widths?

I would like to create a histogram for human population by age, but the $2010$ census data I have available is for five uneven cohorts: ages $0$-$17$, $18$-$24$, $25$-$44$, $45$-$64$, and $65+$. My ...
3
votes
1answer
84 views

How can I mark categories in a BarChart with one instead of multiple labels?

given the following data organized by year ...
6
votes
4answers
284 views

Is there a more Mathematica-y way to label these plots?

I am studying an infinite square well in the context of quantum mechanics. ...
2
votes
2answers
512 views

How could I make a drawing canvas?

My question is related to Change all Options of Plot Dynamically where Mathematica remembers the series of changes in the appearance of a drawing using Plot or ...
0
votes
1answer
165 views

Plotting a function only non-zero for discrete values of argument

I have a function like: $$ f(E)= \Sigma_{n=0} \Sigma_{\ell=0} \, \delta\left(E+\frac{\ell+2n+2} {R\sec{\rho}}\right) w(n,\rho,\ell)\,, $$ i.e. the function is zero unless $$ ...
1
vote
1answer
153 views

Draw the plane on ParametricPlot3D with one parameter

I need to make semitransparent coordinate plane(s) at ParametricPlot3D with one parameter. If I add the second parameter the curves becomes ugly. ...
4
votes
3answers
201 views

Highlight selected curve on the plot

I have several curves on the same parametric 3D plot and I would like to highlight some curves dynamically by choosing them from list. ...
3
votes
4answers
284 views

Change all Options of Plot Dynamically

I am trying to make a series of changes in the appearance of the Plot of some function. I am trying to use Manipulate for my experiments. I tried to change the following code ...
1
vote
1answer
95 views

ListPlot with redundant labels for tick marks

Is it possible to have two sets of labels for the $x$-axis tick marks using ListPlot? For example, could we have tick marks labels: {1,2,3,4,...}, and then right ...
4
votes
1answer
206 views

How to reverse the gradient and ticks in BarLegend

I created a plot with a horizontal BarLegend for TemperatureColors (see1). Code: ...