# Tagged Questions

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

1answer
455 views

### Problem With 3D Contour Plot

So I am very new to Mathematica and I'm using version 9. I need to plot a function $f(x,y)$ such that $f(x,y)$ is equal to $y^2$ when $x > y$ and equal to $10 \sin(x)$ when $x < y$. I want two ...
1answer
344 views

### Highlight Pie in PieChart

PieChart has the nice functionality of highlighting a single pie when you click on it. It is then sticking out a little. See the following example: ...
6answers
909 views

### Default Chart Color Doesn't Match

I have looked through other posts to find out what the default plot color is, but when I use it, the color doesn't seem to match. Can anyone explain why I'm seeing different output? The reason I ask ...
1answer
1k views

### Asymmetric X and Y error bars on ListLogPlot

The wonderful error bar log plots package ErrorBarLogPlots from V6 no longer positions labels correctly (since ...
1answer
640 views

### Horizontal axis tick marks

I have a question about adjusting the number of horizontal tick marks on a 2D plot. Example: f[x_] := 4*Sin[4*x] Plot[{f[x]}, {x, -10, 10}, Ticks -> {Table[Pi n, {n, -5, 5}]}] Gives the following ...
1answer
657 views

### ContourPlot or DensityPlot ColorFunction with x, y and z arguments

Is it possible to apply a color function to ContourPlot or DensityPlot that is function of x, y and z, and not simply of z? Example: ...
1answer
171 views

### Choosing the units for plotting

I´m new to using units in Mathematica. I have read other similar posts about this issue but I haven´t found an answer so far. My problem is simple: I want to plot a certain function with a certain ...
2answers
367 views

### listplot very large numbers

Suppose we have the following function: NN = 150; W[n1_] := NN!/(n1 ! (NN - n1!)) (1/2)^n1 (1/2)^(NN - n1) Then we can Plot or Listplot it: ...
3answers
425 views

### How to plot a function with two parameters determined by another parameter?

I have one small question. My code is like follows. ...
0answers
61 views

### How to change the position of numbers on plot [duplicate]

How to change the position of numbers in axes on plot? I want to see the numbers on the x-axis over it, not under it as it is now to have them clearly visible.
0answers
172 views

### Why won't Mathematica plot my function? [duplicate]

I'm using a theoretical answer found on the official Wolfram site as a reference to ensure my code isn't faulty (even though I'm fairly confident that my original code is half decent). ...
0answers
102 views

### How to increase range in Plot without exceeding maximum bounds? [on hold]

Does there exist some way to increase the plot range of following plot from 10^7 to new value 10^16? It exceeds its maximum ...
2answers
655 views

### Filling between two spheres in SphericalPlot3D

Manipulate[ SphericalPlot3D[{1, 2 - n}, {θ, 0, Pi}, {ϕ, 0, 1.5 Pi}, Mesh -> None, PlotPoints -> 15, PlotRange -> {-2.2, 2.2}], {n, 0, 1}] I cant' ...
3answers
3k views

### Labeling points on a graph with their coordinates in parentheses

I need to create some graphs in Mathematica with a bunch of labels, such as axes labels, graph labels, etc. In particular, there must be some points that must be labeled with their coordinates. Thanks ...
1answer
351 views

### Making a rectangular label for RegionPlot

I have a plot that includes a Region Plot. I want to make a rectangle with the same shading as in the region plot to show as a legend. The dumb way I can think off ...
3answers
194 views

### Applying Labeled Option to Multiple Options

First post. Hope it's not ignorant. I am trying to label several data points so I can label them properly on a ListLinePlot. I know I can label plots if I am ...
1answer
192 views

### project from a n-dimensional space to 2-dim

let's say that I have a sphere in $N$-dimensions $$x_1^2+x_2^2+...+x_N^2=R$$ If I want to know the projection on the $x_1-x_2$ plane in this case I can figure out myself that is a circle, but how ...
2answers
477 views

### Single Legend for a Table of Plots

For this toy problem ...
1answer
288 views

### Plotting a line segment from the degenerate case of an ellipse [duplicate]

An ellipse degenerates into a line segment when the defining constant distance from the two foci is the actual distance between the two foci. The ellipse closes into a line segment. The following ...
1answer
676 views

### Drawing a shape on the mesh of a Plot3D [duplicate]

My question pertains to modifying the output of a typical Plot3D object, and overlaying a 2D shape, like a circle, on the 3D surface. Thinking of the surface as a stretchy surface, I want to put the ...
2answers
3k views

### How do I plot a proper streamline plot, including spacings and line endings?

Mathematica includes two nice built-in tools to visualize vector fields, VectorPlot and StreamPlot. The latter is a useful tool, ...
1answer
338 views

### Unwanted PlotMarkers appear at non-existent places

Bug introduced in 7.0 or earlier and persisting through 10.2.0 In this simple code ...
1answer
256 views

### Plotting ContourLabels on ContourPlot3D

Is there a way to add ContourLabels on ContourPlot3D ? (tried in Mathematica 9) I tried doing the following code : ...
2answers
155 views

### Result of NIntegrate ploting to list

I've been working on a project where I need to make two Plots. Those plots are of the form: ...
1answer
185 views

### Question about inequality plot

I fed this inequality into Wolfram/Alpha: Mod[-1 + 2^(1 - IntegerExponent[2 + 2 x, 2]) 3^ IntegerExponent[2 + 2 x, 2] (1 + x), 1 + 2 x] < 1 + 2 x, and got ...
1answer
202 views

### How to vary thickness of line on the plot? [duplicate]

How to plot the function f(x) so that one part be a thicker line than another depending on the value x? (Curve is efficient frontier - portfolio optimization)
0answers
89 views

### densityplot + world map overlay [duplicate]

I can make a world map, and I can make a density plot, but I can't seem to get them to overlay. Was trying to use Show to overlay: ...
1answer
111 views

### How to show an exclusion limit [duplicate]

I would like to show an exclusion plot, by having a filling made of parallel tilted lines. Any ideas? Something along these lines
2answers
256 views

### ContourPlot - plot only one connected component

How do I plot only one component in ContourPlot when specifying a height. For example, ...
2answers
2k views

### Add Point to Plot3D

I'd like to simply add a nice thick point in $(0,0,0)$ to Plot3D[(y^2/x), {x, -3, 3}, {y, -3, 3}]. The solutions I came across to add anything to ...
1answer
593 views

### How to manipulate some list-plot in Mathematica

I have two separated matrices in the form X[[i*dx,j*dt]] and V[[i*dx,j*dt]] where i & j are integers from (1 to N) & (1 to M). V & X are velocity ...
1answer
453 views

### ContourPlot3D using a Matlab function through MATLink

I have a Matlab function which accepts a 3 dimensional vector and returns a single number. I want to use this through MATLink to make a 3d plot. A unit sphere: ...
1answer
664 views

### How can I plot a function that is the sum of another function?

I plotted m[t], but actually what I want to plot is g[t], which is a summation of m[t] from ...
1answer
580 views

### Mathematica Semilog (LogLinearPlot) using x,y points from table [duplicate]

I am trying to use the LogLinearPlot in Mathematica 9 to create an x-axis only logarithmic plot that looks like this (Based on N^1.85 graphing paper) http://pingfire.com/ What it does is model a ...
1answer
148 views

### How to return the points {Xi,Zi} generated by ContourPlot [duplicate]

I have the following two questions How to visualize the dependence Y versus X with Mathematica using ContourPlot, if it is given by the following system of two equations: Y=f(X,Z) and g(X,Z)=0 ...
1answer
733 views

### Unit of the frequency axis in BodePlot

I have a simple question: What is the unit of the frequency axis in the BodePlot? I searched the documentation, but only found this: The scaling functions can be specified as ScalingFunctions->{{...
2answers
245 views

### Using Multiple Kernels When Making Plots

I am running a notebook that makes multiple plots. I define a function and then I want to plot that function for different choices of parameters, using RegionPlot. ...
1answer
141 views

...
2answers
2k views

### Plot3D region bounded by equations?

I have four equations, $$z = xy \\ z=0 \\ y=x^2 \\ x=y^2$$ I would like to integrate the region bounded by them. Before this, I would like to plot the region they bound, but I cannot seem to find ...
1answer
71 views

### Plotting: Basic Question [duplicate]

I am new user. I am plotting "y = x^3". My "x" domain is "{x, -5, 5}", but then it scales for all "y" values. Is there anyway to zoom in, or have it plot/display a limited "y" range of values? The ...
1answer
211 views

### StreamPlot Label for General Parameter

I have a simple DEQ: $$y'(t) = y + C$$ for a constant $C$. It turns out that the equilibrium point of this DEQ is $-C$. I can use the StreamPlot command to plot ...
3answers
757 views

### Draw grid lines at multiples of k

Here is a beginner's question: when creating plots with mathematica, I want the grid lines to be at multiples of a constant value. E.g. in the following plot, the vertical grid lines are at multiple ...
2answers
910 views

### Plotting time data with axes labels and point labels

I am trying to create a set of commands to automatically create clinical lab value plots. Using time is my major issue here. It is hard to dynamically reference the different point positions to ...
1answer
168 views

### Problem with Plot of Solution for NDSolve [closed]

I'm trying to plot the solution of an equation using NDSolve. For some reason nothing shows up in the plot. I checked the output of the interpolating function and it doesn't look like there is ...
1answer
586 views

### spherical polar plot of radial function [closed]

Can you please tell me how to plot $\sqrt{r}$ in 3d sph polar plot? In the spherical plot 3d there is no option I can put variable r. So how should I proceed.
3answers
170 views

### How to have a special grid as background of a plot?

I want to have a grid background for the function (2/5)*x+3/5 but with one small detail. I want the coordinates of the points to be in the centres of the background ...
2answers
4k views

### How to reverse the direction of the y axes

I have a similar question to this one. Unfortunately, the answers there didn't help me. I would like to plot a simple function with the normal Plot function. ...
1answer
248 views

### need help rotating an object about the z-axis using animation

This should be an easy question for anyone familiar with 3D animations. I have a 2D shape denoted by the equation ((x-1)^2+y^2) ((x+1)^2+y^2)==1 and I ...
2answers
2k views

### ListPointPlot3D with connected points?

With the command ListPlot[data,Joined -> True] I can visually connect adjacent data points in the array with lines. However, this option appears to be missing ...
1answer
507 views

### How can I get dotted boundaries on a RegionPlot?

How do I plot something like $$\{(x,y): 1 \leq x^2 + y^2 < 9\}?$$ I want to be able to make the boundary $x^2 + y^2 = 9$ dotted line and the unit circle filled and coloured region in between? I ...