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

learn more… | top users | synonyms (4)

3
votes
3answers
430 views

Horrific Looking Contour Integral in Mathematica Plot:

I'm attempting to display the geometric meaning of a contour integral but as you can see, the typesetting of the contour integral (created via the Epilog function) looks awful because the contour ...
10
votes
3answers
923 views

Dashed mesh behind 3D object

I am trying to create a simple, almost transparent 3D sphere with a mesh that is made of solid lines if they are on the front surface (i.e. if they are directly visible) and of dashed lines if those ...
2
votes
1answer
140 views

Avoiding the re-evaluation of a RegionPlot3D

Is there a simple way to save the output from RegionPlot3D so as to avoid re-evaluating when the notebook is re-opened and Show ...
4
votes
3answers
767 views

Graphical Plots of PDF and CDF

I have a joint density and distribution function that I want to plot in a meaningful way, (i.e., want to be able to see how the functions behaves as changes in x and y happen simultaneously. If ...
10
votes
4answers
1k views

How to draw a higher-genus surface

NB: By higher-genus surface, I mean a closed orientable surface of genus at least 2. This question has come up before on math.SE, and even MathOverflow, but most posters suggested using either ...
4
votes
1answer
107 views

How can PixelConstrained be emulated with DensityHistogram?

This DensityHistogram doesn't display very well. Some bins are shown much larger than others and, oddly, empty bins appear to be drawn smaller than occupied bins. ...
3
votes
1answer
2k views

Contour Plot in Cylindrical Coordinates

I'm trying to render an equation in the cylindrical coordinates, and I used the following codes: ...
28
votes
3answers
809 views

How can I make points “glow”?

I have a set of points in the plane which I would like to have "glow". I would like for each point to glow individually and I would also like some increase in the intensity corresponding to an ...
1
vote
1answer
218 views

Problem with large values in ParametricPlot

I've got a question quite similar to No 18163:Problem with high parameter values in ParametricPlot, but the solution of that problem did not work for me. So I hope you may have another tip. I want to ...
17
votes
2answers
736 views

Helio chart for canonical correlation

I'm trying to create a chart usually called "Helio chart". It's a chart type very suited for canonical correlation analysis involving several dependent and independent variables. However, it is a ...
3
votes
1answer
121 views

Controlling margin around PlotLegends

Here's my code: ...
5
votes
3answers
793 views

Placing bar chart labels on the upper and lower frame axes

In the bar chart (with negative values) ...
2
votes
2answers
390 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
1k 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
685 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 ...
7
votes
1answer
614 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
198 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 ...
7
votes
3answers
1k views

Custom mesh in ListPlot3D

I have the following data: ...
6
votes
1answer
134 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
675 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
441 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
492 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
103 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
286 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
409 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
1k 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
44 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
738 views

Using transparency in ContourPlot makes mesh visible [duplicate]

I am trying to use a ColorFunction with Opacity in ContourPlot. Here's my code: ...
6
votes
5answers
3k 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
810 views

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

I have following code: ...
3
votes
2answers
945 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
72 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
118 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
797 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
791 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
557 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
151 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
365 views

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

Bug introduced in 7.0 or earlier and fixed in 10.0.0 When BarChart layout is "Stacked", setting ...
2
votes
2answers
183 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
313 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
348 views

Plotting many tables in a single plot

I have several lists. ...
-8
votes
2answers
547 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
197 views

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

Assume these parameter definitions first: ...
10
votes
7answers
754 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, ...
4
votes
3answers
8k 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 ...
3
votes
2answers
423 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
745 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
925 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, ...