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
140 views

Adding map to 3D plot?

I've made a 3D plot of a pressure surface over the region 160W-20W, 20N-80N - the right panel and I would like to put a map under it, probably just continental outlines for simplicity. I'm just ...
0
votes
1answer
54 views

Problems with the plot of a function. [duplicate]

For some reason the result of Plot of the following function: ...
3
votes
1answer
136 views

Mysterious spikes in Plot3D

I am using Mathematica 9 and get these strange spikes when I plot the following simple function. I have seen a previous post about this but cannot figure out what is wrong with the following code. ...
2
votes
1answer
96 views

How to plot on complex plane with Mandelbrot set

I essentially want to treat the Mandelbrot set plot as a normal plot so that I can plot arrows and points on top of it. This is what I want to do but it gives me an error: ...
1
vote
1answer
115 views

Show plot legends for multiple curves in one plot [closed]

I have 5 curves, figure1a0, figure1a001, figure1a01, figure1ae01, and figure1ae001,. I display all these curves in one plot with Show. I want to give a label to ...
13
votes
1answer
689 views

Is Mathematica `ContourPlot` function really so efficient?

I wanted to find the roots of the function $f(x,y)=\sin(3.2x)\sin(1.3y)-2.1 \sin(1.3x)\sin(3.2y)$. This is what the function looks like: ...
3
votes
0answers
48 views

WorkingPrecision in LogLogPlot creates wrong plots

I seem to have found a bug with LogLogPlot in version 10. If I specify a working precision, the function produces total garbage. Here is a simple example. The first case, without WorkingPrecision ...
2
votes
3answers
106 views

Plot a table of lists

I want to make a point plot of a table with lists in it. Assume I have data like this: data={{1,2,3,4},{5,6},{1,5},{2,4}}; and now I want to make a point plot ...
0
votes
0answers
48 views

How to make Show work in Mathematica 10 Kernel

Wolfram Research says it no longer supports JavaGraphics in Mathmatica 10. This is very bad for people who prefer the Kernel to the FrontEnd. However, I am still able to get it to work. Show ...
0
votes
0answers
12 views

why does a ReplaceAll stop Plot from cycling colors? [duplicate]

Suppose I Plot[{a x^2, a x^3} /. {a -> 2}, {x, 0, 1}]. Then the expressions plot, but the colors do not cycle. If I Evaluate ...
-1
votes
1answer
71 views

Define a function and then integrate and plotting of the solved function [closed]

First I want to solve for $n_{0}$ for a fixed value of $n$, lets say $n=1$ $$ n= n_{0}+ \dfrac{1}{2}\int_{-1/2}^{1/2}dq\left(\dfrac{e_{q}+Un_{0}}{\hbar\omega}-1\right) $$ where $e_{q}=2[1-cos(2\pi ...
2
votes
1answer
67 views

Pausing a dynamic display

I'm trying to display some graphs, which were defined with plot above this line of code. The parametric plot moves through all of the x values, the others are stationary. I would like the parametric ...
0
votes
2answers
79 views

Lotka Volterra Equation Plotting

So I have a basic Mathematica assignment where we need to numerically solve a Lotka-Volterra predator-prey population equation. So far I have managed to come up with this ...
0
votes
0answers
61 views

How to add a Bar Legend to a density plot over the surface of a sphere?

I have a function with variables (theta,phi) the spherical coordinates. I want to represent it as a density plot over the surface of a sphere. following an answer to a previous question Density ...
0
votes
2answers
70 views

Flipping Vertical Axis in ParametricPlot [duplicate]

Basically, I'm trying to "rotate" a plot clockwise so that the former x-axis is pointing down, and the former y-axis is pointing to the right. From reading some answers on here, I gathered that I can ...
3
votes
3answers
182 views

Plot Plane to Intersect 3D Contour Plot in Mathematica

I have a 3D model of a heart in Mathematica and I'm trying to create a plane so that the open surface (as seen in the image below) is cut off so that the heart can have a solid, level surface. How ...
0
votes
2answers
56 views

Help me plot a tangent with a Sin curve [duplicate]

Hi just wondering how to graph the tangent as well as this curve on the same graph : f(x)= Sin[x] at x=0 where the gradient of the tangent is 1
0
votes
1answer
34 views

Problems using a complicated function within a LogLinearPlot [duplicate]

my problem is that I have a rather large function which I'm trying to plot, which looks something like this: ...
1
vote
2answers
73 views

Why Plot does not work with a computed integral?

I have been following the examples of the official W|A documentation; exactly: http://reference.wolfram.com/language/tutorial/UsingANotebookInterface.html The ...
4
votes
0answers
59 views

Exclusion disappears but style doesn't work

Consider this code: f[x_]:=(6 + 4 x + x^2 - x^3)/(x-2) Plot[f[x], {x, -10, 10}, Exclusions -> {2}, ExclusionsStyle -> Directive[Red, Dashed]] It produces ...
2
votes
2answers
111 views

Staight line Mesh

How to see (t,u) junction/nodes with a dot or a small circle connected by straight line in Mesh in 3D, but not as arcs generated by a large number of small steps of t and u.The command should, if ...
4
votes
1answer
64 views

Weird result of DensityPlot - drastic changes because of slight modifications of plot range

DensityPlot[ Max[0, 0.1 - Abs[1. - Sqrt[x^2 + y^2]]], {x, -1.1, 1.1}, {y, -1.1, 1.1}, ColorFunction -> (Opacity[#, Blue] &), Frame -> False] This ...
1
vote
2answers
53 views

combine two ParametricPlot3D plots

I have the following parametric equations ...
0
votes
1answer
62 views

Changing Axis of a Listplot based on values in a list [closed]

I have a table with some data that I plot against each other, say like this. ...
2
votes
2answers
85 views

3D graphics with colourbar

I have lists with 4 data e.g. {{0,0,0,-2000},{0,0,.5,-1800},{0,0,1,-1500},{0,.5,0,-2005},{0,.5,.5,-1795}, {0,.5,.1,-1508} ... {x,y,z,B}} How can I plot B ...
0
votes
1answer
61 views

Are there any built-in functions to find the feasible space for a set of constraints? [closed]

I have a set of constants including linear and nonlinear equalities and inequalities. How can I obtain the the admissible values of each dimension (so-called feasible solution space) . Are there any ...
0
votes
2answers
57 views

how to control the limits of two variables in manipulate

This is my code. myPlot[a_, b_] := ParametricPlot3D[Sin[x], {x, a, b}]; Manipulate[Show[myPlot[a, b]], {a, -1, 1}, {b, -1, 1}] I want to manipulate ...
0
votes
0answers
40 views

Placing a ContourPlot under a SphericalPlot3D [duplicate]

I would like to combine a 3-dimensional graph of a function with its 2-dimensional contour-plot underneath it in a professional way. But I have no idea how to start. I have a three of these I would ...
1
vote
2answers
90 views

optimization of CountourPlot with NIntegrate

I have to use ContourPlot with a complicated function depending on 2 parametrs (that I cannot report here) that contains numerical integrations. Here is a simple ...
1
vote
1answer
74 views

BarChart with Log-Scaling and Error-Bars [duplicate]

I want to make a BarChart with Log-Scaling and Error-Bars. I can do both individually: ...
4
votes
1answer
258 views

Where does this gray solid line come from in plot? [duplicate]

Where does this gray solid line come from? It's not y=0 or x=0. Sometimes it occurs, sometime does not. I can't really produce a smaller example that does the same thing as it is really "random". ...
0
votes
2answers
54 views

interpretation of parentheses in ToExpression

The code below generates the plot "z" and gives a name to the "Show" function. ...
1
vote
1answer
71 views

LayeredGraphPlot: how to specify edge endpoints?

What directive within the LayeredGraphPlot command specifies where the edges attach to vertices? For example, instead of the left output below, I'd like to have the right one. ...
0
votes
1answer
50 views
-2
votes
2answers
83 views

Plotting self-made functions [closed]

EDITED AS SUGGESTED I have defined a function, which takes two values and returns a function n(x), like so ...
0
votes
0answers
58 views

Using ContourPlot of a Potential surface Image

I did this image, using Contour plot: and the code is: ...
1
vote
0answers
42 views

Cursor function for 3D plots [duplicate]

I will illustrate my question with a picture from a matlab plot. Is it possible to do the same thing with Mathematica plots in 3D as well? The above is from a 3D matlab plot. I can get tooltips ...
2
votes
3answers
141 views

Inefficient NIntegrate and Which

In version 10 a simple numerical integraton of piecewise function is highly inefficient: ...
3
votes
5answers
222 views

Define a function with variables linked implicitly

I would like to define a function $f(x,y)$, with the variables x and y linked by an equation implicitly, so $f(x,y)=f(x(y),y)=f(y)$. Eventually I would like to draw a graph with $f(x(y),y)$ being the ...
1
vote
1answer
56 views

How to Plot a Bezier Curve for a specified Control Polygon with a restricted interval

I am having some confusion in plotting a Bezier Curve for the specified interval [a,b] for a given control point polygon. For example: ...
3
votes
2answers
161 views

Legend Matrix Plot

I have the following problem. I'd like to add a legend to Matrixplot. Each colour should have a legend entry. I used PlotLegends, which works in principal. If I use more than five colours this doesn't ...
1
vote
0answers
69 views

How to plot feasible objective space of a Generic Multiobjective Optimization problem?

As you know, a generic Multiobjective optimization problem can be stated as follows: $min{\space}F(\bf{X})=[f_1(x),...,f_n(x)]$ $h_k(x)=0{\space\space\space} k=1,...,n_e$ ...
-2
votes
2answers
46 views

How to highlight (differentiate) negative numbers in plots? [closed]

I want to clearly see negative values in 3D plots. How can I do it?
0
votes
1answer
96 views

How to put a condition in 3d plotting

I have the following plotting question: First I want to have 3D plot of Alpha respect to different values of p and l when we ...
0
votes
0answers
32 views

How to change the plot starting point? [duplicate]

I tried to translate this Python plot to Mathematica: Python: Mathematica: ListLinePlot[RandomReal[{0, 1}, 10], Filling -> Axis] The Mathematica code ...
4
votes
1answer
93 views

Figure with fill

I want to make a figure like this In Mathematica 9, to fill it with a grid inside (and necessary without part of the grid outside), but to generate this picture, I need to graph two semicircles and ...
0
votes
0answers
96 views

2d perspective projection of a sphere

I am looking for improved quality of 3d plots. I don't want to keep the object in Mathematica notebook - just export it to a .pdf file. Because it will be just one "side" of the plot I was thinking ...
0
votes
1answer
82 views

how to scale the plot of PDF (t-distribution)

The directions in my book say: "To sketch the t distribution in Figure 3.11, simply multiply the abscissa t value by the scale factor and plot this against the ordinate of t at that point." So ...
-1
votes
1answer
95 views

How to get a 3D plot of from the the solutions of function [closed]

I have the following equation: (1 - x)^2 + T^2/((f[x] - L)*(f[x] - L - 2*T))*(P/(N-R+S)) == 0 f[x] = (x*r*(T + L) - T)/((x*r) - 1) ...
4
votes
2answers
99 views