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

learn more… | top users | synonyms (4)

6
votes
1answer
108 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
509 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
195 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
218 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
93 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 ...
8
votes
2answers
223 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
294 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
607 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
389 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
1k 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
1answer
307 views

save table of plots into a single figure

I have following code: Table[LogLogPlot[ a + 0.017*k + (-0.014*k)*Tanh[(k - 0.25)*b], {k, 0.1, 10}], {b, {0.1, 0.2, 0.3, 0.4}}, {a, {1.0, 1.1, 1.2, 1.3}}]] I ...
3
votes
2answers
486 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
65 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 ...
0
votes
1answer
170 views

ListPlot of recurrence equation of multiple variables [closed]

I'm working on a class demo of recurrence equations and I want to show the impact of different parameter values using Manipulate. Here's my code: ...
4
votes
1answer
113 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
580 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
416 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
434 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
115 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 ...
2
votes
2answers
143 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
214 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 ...
1
vote
3answers
249 views

Plotting many tables in a single plot

I have several lists. ...
-9
votes
2answers
365 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
179 views

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

Assume these parameter definitions first: ...
10
votes
7answers
544 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
4k 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
235 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
408 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
458 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
45 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
209 views
2
votes
2answers
2k 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 ...
6
votes
4answers
1k 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
557 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
157 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
94 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
143 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; ...
14
votes
2answers
1k views

Angular Range in Polar Plot

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

Problem with ContourPlot3D

The following line works fine: ...
5
votes
2answers
189 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
494 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
395 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 ...
2
votes
3answers
620 views

PlotRange adjustments with BarChart

I'm working on making some BarCharts, however, some of my data is contained within a small range so I want the plot to start above 0 and cut-off the bars below ...
5
votes
1answer
561 views

Why does Plot leave gaps in the graph of a continuous function? [duplicate]

I have plotted the overlapping area of the UnitBox and the triangle function as: ...
2
votes
1answer
458 views

Trying to plot a velocity profile in x-y plane

I have a velocity profile for two liquids on top of each other in a pressure driven channel. The profile is supposed to be parabolic. I plotted them up, but I can't manage to plot them in the x-y ...
5
votes
1answer
1k views

Plot, extract data to a file

I need to save data that Mathematica uses inside the Plot command. The format that I would like to have is: x1 y1 x2 y2 ..... ...
2
votes
1answer
159 views

Thickness option in FillingStyle

I have the following ListPlot: ...
3
votes
1answer
541 views

Extracting polygons from 3D contour plot surface

Edit: This question turned out to be two parts so I am going to make this question about only the first part a kguler provided an excellent answer. Here is a better representation. My actual data ...
7
votes
1answer
327 views

FullGraphics ticks problem

In the document of FullGraphics, it promise to produce the same graphic result as the input one: ...