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

learn more… | top users | synonyms (4)

0
votes
1answer
44 views

EdgeRenderingFunction For 2 Vertices in a Loop

Assume there is a set of rules: set = {"A" -> "B", "B" -> "A", "B" -> "C", "C" -> "D", "D" -> "A", "C" -> "C"}; which we want to graph using ...
-3
votes
3answers
112 views

How can I plot a polygon with n sides inscribed in a circle and show the area?

I am doing some work on Archimedes and want to show what the area of a regular n-sided polygon is within a circle. My professor from two years ago was able to show it with an adjustable slider that ...
1
vote
1answer
49 views

ListPlot and AspectRatio

Here is a simple scenario ...
0
votes
1answer
52 views

Copy/export a plot as vector EMF

I want to generate a plot using Plot, copy it and paste to a Word/PowerPoint document as a vector EMF file in order to preserve best quality of an image. However I found out that if I Copy Graphic ...
1
vote
2answers
63 views

Creating histograms with specified mean and intervals

I have a set of data that I want to create a histogram for. The thing is, I would like to set the center of the histogram to the mean of the dataset and the intervals to be the standard deviation. How ...
0
votes
1answer
32 views

Manipulate - Plot - Function with Parameters [duplicate]

dear community! How do I make this construction work? ...
0
votes
0answers
21 views

Manipulate and Plot, How to keep vertical axis still? [duplicate]

Consider this: Manipulate[Plot[1./n*Sin[t], {t, 0, 10}], {n, 1, 10}] When I change n, I expect the height of the plot ...
0
votes
2answers
47 views

Unknown option LegendPosition (even after Needs[“PlotLegends`”]) (Mathematica 10.0)

I'm running Mathematica 10.0 for Students. When I tried ...
0
votes
3answers
76 views

ListPlot3D not working for very small numbers

I have defined a function FreeEnergy[x,y], which I want to plot in 3D. It is a function involving numerical integrals. When I make a flattened table ...
0
votes
1answer
85 views

Drawing an dodecahedron with vertexes at given coordinates

I want to draw an (edit)dodecahedron with the vertex in the following coordinates: ...
0
votes
0answers
32 views

How to fix the PlotRange on LogPlot? [duplicate]

I'm plotting families of Boltzmann'esque distribution functions $\propto\exp\left(-{\dfrac{\varepsilon+{\mathcal O}(\varepsilon^2)}{k_\mathrm{B} T}}\right)$. But it won't let me fix the ...
1
vote
1answer
92 views

Help with plotting and improving code

I'm trying to solve a coupled DDE. Here is my code ...
2
votes
2answers
136 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
52 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
90 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
106 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
658 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
47 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
101 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
45 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
70 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
64 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
73 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
55 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
69 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
146 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
31 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
71 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
57 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
108 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
62 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
51 views

combine two ParametricPlot3D plots

I have the following parametric equations ...
0
votes
1answer
56 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
53 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
53 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
39 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
86 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
67 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
251 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
53 views

interpretation of parentheses in ToExpression

The code below generates the plot "z" and gives a name to the "Show" function. ...
1
vote
1answer
69 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
80 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
140 views

Inefficient NIntegrate and Which

In version 10 a simple numerical integraton of piecewise function is highly inefficient: ...