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

learn more… | top users | synonyms (4)

2
votes
2answers
294 views

Solving and plotting ODEs while varying one of the initial conditions

How can I vary an initial condition in the numerical solution of a system of ODEs and then make a 3D plot of the solution space with that condition as one of the variables. ...
-1
votes
1answer
951 views

Labels for each curve on a multi-curve plot using an efficient method(without writing a large code) [duplicate]

I have a question on plot labeling in Mathematica. I have y = 4 x / L + 2 where L = {10, 20, 30, 40} I want to draw a ...
1
vote
2answers
1k views

Finding a best fit curve and plotting it [closed]

I have a list as shown below: m01 = {{250, 0.083121}, {200, 0.0888446}, {150, 0.0992422}, {100, 0.121567}, {50, 0.186825}} I'm new to Mathematica, and would like ...
0
votes
2answers
475 views

Copy and pasted graphics are fuzzy

I have a function that creates a 2D line with filling to the axis. When I copy this graphic into word it is very fuzzy, so much so that the numbers and text are almost unreadable, not to mention the ...
6
votes
1answer
400 views

Filling only when one curve is below the other

I want to fill the area between two curves only when curve-1 (Black) is below curve-2(Blue). So In this example, I don't want the middle portion shaded but just the left and right tails to be shaded. ...
0
votes
1answer
177 views

ContourPlot of a complicated function

I have the function $pot_1(x,y,z)$ which is given in analytical form. So, in order to plot the contours at the primary planes $(x,y)$, $(x,z)$ and $(y,z)$, I use the following ...
5
votes
3answers
763 views

Custom mesh in ListPlot3D

I have the following data: ...
6
votes
1answer
118 views

How can I keep a plot's filled area from obstructing other lines when exported as EPS?

I am plotting several functions, some of which have fillings. After I combine all the functions together on a plot and export the plot to an EPS file, the fillings obstruct other lines. Exported PDF ...
0
votes
1answer
577 views

Contour plots of a two-variable function depicting the values of its integral

Given a two-variable function f[x,y], how to get the contour plots corresponding to several values of the integral of the original function. For example, I would ...
-1
votes
1answer
256 views

Plotting Extended Zone Scheme:

How could I present an extended zone scheme for a delta-function Kronig-Penney model? That is, how can I display only the lowest contour in the region [0, π], the second-lowest contour in the region ...
2
votes
1answer
315 views

How do I plot many arrows in a sphere?

I want to plot a lot of arrows in a sphere (3D-Plot). That is not a problem with a small number of Arrows; for a few I can do than something like this: ...
0
votes
0answers
99 views

How do I get a plot with a certain size? [duplicate]

I am currently creating a poster for a conference in Scribus. I have a given space on the poster for a plot that I want to create with Mathematica. I don't want to scale in in Scribus, as this would ...
9
votes
2answers
247 views

Strange behavior of PlotMarkers with ListLinePlot[] and InterpolationOrder->0

I want to create a ListLinePlot with InterpolationOrder->0. However, when using plot markers like in ...
3
votes
0answers
334 views

A is fast, B is fast, but together they're Mathematica-crashing slow?

I'm trying to do something with finding solutions to a quantum mechanics problem with n wells. If there are 40 wells, I need to find the solution to an equation in the form: ...
7
votes
1answer
743 views

Normal lines to surfaces or planes in a 3D plot

How do I make the normal line to a plane actually look perpendicular? ...
1
vote
0answers
43 views

plot[] with subsititution rule [duplicate]

I encounter this problem in Mathematica 9.0.1, I'm not sure if it ever happens in other version. Plot[{x, x + 1}, {x, 0, 10}, PlotStyle -> {Red, Green}] This ...
5
votes
3answers
553 views

Using transparency in ContourPlot makes mesh visible [duplicate]

I am trying to use a ColorFunction with Opacity in ContourPlot. Here's my code: ...
5
votes
5answers
2k views

Specifying the size of open circle PlotMarkers in ListPlot

I would like to use ListPlot to plot some points. I would like the PlotMarkers to be open circles. I can use ...
5
votes
2answers
507 views

Saving table of plots into a single figure within a pdf file

I have following code: ...
3
votes
2answers
688 views

3D scatter plot from a txt file

I have a txt file with space-delimited x, y, z coordinates of several points. The points are organized into groups of unequal size; the groups are delimited by skipping a line, like this: ...
2
votes
2answers
66 views

Invalid comparison in RegionPlot

I'm trying to plot something like this: RegionPlot[0 < (.5*a2 - .25*a1)/(a2 - a1) < 1 && 0 < a1 < a2 < 1, {a1, 0, 1}, {a2, 0, 1}] The ...
4
votes
1answer
115 views

Why this code is considerably slower in version 9?

I have a Mathematica code for computing and plotting the density which corresponds to a given potential. The following code was written few years ago using version ...
8
votes
4answers
664 views

Showing a rectangular plot on an almost-closed sphere

I am currently teaching some students about the "point at infinity", and how it allows us to treat circles and lines as "the same", etc. I would like to kind of show this happening with a series of ...
2
votes
2answers
595 views

How to change the density range in DensityPlot?

This is an example from Mathematic Help, DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3}, ColorFunction -> "SunsetColors", PlotLegends -> Automatic] ...
13
votes
4answers
476 views

Is it possible to select outliers on a graph and determine the index of the outliers?

I have a large data set of experimental data for which I have determined a theoretical fit. However, for some of the experimental data I took, there was systematic error, leading to the data deviating ...
0
votes
1answer
129 views

Problem with plot of discontinuous function of 2 variables and adding legend to a contourplot

I have 2 problems with which I would need help: -first one is that I would like to plot a discontinuous function of 2 variables but can't succeed (see attachment) -then I also would like to display ...
10
votes
3answers
315 views

“Stacked” BarChart with BarOrigin $\to$ Top makes y-tick marks negative

This bug was fixed in version 10.0.0 When BarChart layout is "Stacked", setting ...
2
votes
2answers
165 views

How to change the last plotstyle of a list

I'm using ListLinePlot to plot a list containing 10 lists, using the default colors: ListLinePlot[myList] I would like to be able to keep the default PlotStyle ...
5
votes
2answers
258 views

Histogram3D using sums instead of counts

I'm trying to create a 3d histogram/ matrix plot pair. My data is in the form {{TTR1,TBF1},{TTR2,TBF2},....} What I would like is to modify the Histogram3D so ...
2
votes
3answers
281 views

Plotting many tables in a single plot

I have several lists. ...
-8
votes
2answers
447 views

Color plot markers using If statement

I am calculating eigenvlaues. Some are negative, some are positive. I define the index nn and mm (as well as np and mp) of each matrix element by some functions that assign positive, zero and negative ...
6
votes
3answers
194 views

How to make a plot of function over 24 orders of magnitude?

Assume these parameter definitions first: ...
10
votes
7answers
626 views

How to dynamically toggle curves on/off in a crowded Plot?

When multiple curves appear in a single plot, it is useful to interactively turn certain curves on or off to visually compare smaller numbers of curves. It is trivial to put a quick dynamic together, ...
3
votes
3answers
5k views

How to plot an ellipse?

I'm new to Mathematica, and I'm finding it difficult to plot an ellipse. I tried using Plot[(x/5)^2 + (y/3)^2 == 1, {x, -5, 5}, {y, -3, 3}] but I'm getting ...
2
votes
2answers
290 views

What is wrong with my VectorPlot?

I am trying to make a simple plot of a spherical field falling off with distance from origin: ...
2
votes
3answers
551 views

Controlling Bar Color in BarChart precisely [duplicate]

I'm trying to control the color of individual bars in a BarChartwhen I pass a 2 dimensional list of data to plot. What I want to accomplish is that for each pair of ...
5
votes
2answers
619 views

Plotting 2D Data with Categorical Data in One of the Dimensions

I have a 2D data set in the form of: data={{Category, Integer}, {Category, Integer},{Category, Integer}...} It is a pretty simple data set with four categories ...
0
votes
0answers
48 views

how to interactively select points inside certain region in a plot [duplicate]

Very often I encounter a situation that I want to select some points inside certain areas of a plot. For example, ...
1
vote
1answer
226 views
2
votes
2answers
3k views

Plot 4D data with color as 4th dimension

I have a list of 4D data (x position, y position, amplitude, wavelength). I want to plot x, y, and amplitude on a 3D plot and have the color of the points correspond to the wavelength. I have seen ...
7
votes
4answers
2k views

How to add a common color legend to a grid of density plots?

I have a grid of density plots, say something like: GraphicsGrid[Partition[Table[ DensityPlot[Sin[i x] Sin[y/i], {x, -4, 4}, {y, -3, 3}], {i, 1, 4}], 2]] I ...
2
votes
1answer
853 views

Polar Plot of a two variable function

I am trying to make a polar plot of a two variable function, which has a radial and an angular part. For instance Y[r,φ]=r^2 Cos[φ]. I can make this plot using ...
0
votes
1answer
162 views

Choosing a solution to plot

I'm solving a system of equations that gives me three solutions and then plot a series of solutions depending on a parameter. The problem is that I have to choose different solutions depending on ...
1
vote
1answer
105 views

LogLinearPlot, extact data to a file, part 2

My question is based on the discussion that I started: Plot, extract data to a file The method proposed works well for the Plot command, but what about ...
5
votes
1answer
169 views

How to stop Manipulate changing view point

When using the following manipulate I can rotate the plot and manipulate the value without my view point changing; ...
15
votes
2answers
1k views

Angular Range in Polar Plot

I am trying to make a polar plot using the following code ...
8
votes
2answers
451 views

Problem with ContourPlot3D

The following line works fine: ...
6
votes
2answers
223 views

ListPolarPlot Labelling Points on the Plot

I have created a ListPolarPlot using the code below. I need to label the lines that extend from the centre to the outer ring. I do not want to label them with the values that these lines represent but ...
7
votes
6answers
610 views

Manipulate and Turning Expressions into Functions

I've been trying to use Manipulate to do interactive plotting, but I've been running into a few problems with saved expressions. I have an expression saved as "func" and I want to work with it and ...
5
votes
2answers
516 views

ListContourPlot interpolation screws up on concave set of data

I want to create ListContourPlots for sets of Data (from a physics simulation) given as Triplets {x, y, f(x, y)}. Certain parameter regions in the x-y-plane are ...