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

learn more… | top users | synonyms (12)

1
vote
1answer
132 views

Shortest distance path on contour plot

I have a contour plot made of the following list: ...
0
votes
0answers
60 views

How to plot an interpolating function from data showing the median values and the scatter around the medians

I have a list of data points $x_{i}$, $y_{i,16}$, $y_{i,50}$, and $y_{i,84}$ where $y_{i}$ respectively correspond to $16th$, $50th$ and $84th$ percentiles value of the function at positions $x_{i}$. ...
2
votes
1answer
81 views

Contours all getting labeled as zero in my contour plot

As you can see from the plot below, my contour plot renders several contour lines. The legend shows the how values change with colors. However, all the contour lines on the plot are labeled 0, which ...
2
votes
1answer
195 views

How to graph a 3D function of two variables? [closed]

How to graph this: \begin{alignat*}{3} x(s, t) &= a\cos(mt) \cos^{k}(ns) &&\cos(t) &&\cos(s), \\ y(s, t) &= a\cos(mt) \cos^{k}(ns) &&\sin(t) &&\cos(s), \\ z(s, ...
1
vote
1answer
70 views

ArrayPlot3D : want to represent the values in the heights of rectangular blocks

I would like to achieve something like ArrayPlot[] but rather than using the array values for color, I want those values to specify heights of rectangular blocks. There seems to be no option in ...
-1
votes
3answers
98 views

How to make a 3D plot over a triangular region

I'm new to mathematica. I'm trying to Plot3D the function f[x_,y_]:=x^3+2x y over the triangular region of the plane with ...
1
vote
1answer
118 views

Coding using time from system(computer)

Please help me to solve this problem below. I want to run this coding based on the time given by the system. Given, A = ( { {E^(I [Beta]1 + I [Beta]3) Cos[[Beta]2t], E^(I [Beta]1 - I [...
4
votes
4answers
263 views

Colouring points in a Delaunay Mesh by the number of nearest neighbours

I apologise if this is a repeated question, but I've searched for a while and can't find anything. I'm doing some molecular dynamics simulations using Mathematica 10, and I've placed a ...
3
votes
1answer
89 views

How to specify a mesh in plotting options [closed]

I have a very simple question: Imagine I have solved a PDE on a mesh and want to display the solution on the same element mesh that was passed to NDSolve. I have ...
0
votes
1answer
58 views

Adjusting VoronoiMesh size

How it is possible to extend VoronoiMesh to the whole ListPlot in the following example? ...
0
votes
0answers
30 views

ListPlot: zoom on scroll, pan on drag [duplicate]

How is it possible to create interactive ListPlot with the following behaviour: pan on drag, zoom in/out on mouse scroll, with the zooming centered at the cursor ...
2
votes
3answers
139 views

Combine three functions in one graph using Plot3D and show

I have a function, f, which is divided in three functions depending on the ranges of some variables (a and r) and constants (<...
4
votes
2answers
141 views

Adding labels to close points in a ListPlot [duplicate]

I need to add labels to points in a ListPlot. The only problem is that the points can be closely located so if I do it in my usual way it becomes messy. I would ...
1
vote
1answer
182 views

plotting a function in bipolar coordinates

How to plot a function specified in bipolar coordinates if straightforward substitution of expression of Cartesian ones via them is impossible?
3
votes
4answers
156 views

Filling between two listplots

I have two lists which are plotted by below simple command ...
14
votes
5answers
2k views

How to speed up the plot of NIntegrate?

Here is a toy example: f[t_] := NIntegrate[Sin[x], {x, 0, t}]; Plot[f[t], {t, 0, 10}] // Timing Even such a simple example will take 2.8 seconds on my computer. ...
2
votes
4answers
257 views

How to draw a triangle like this one

I have a rectangle of size $x \times n$ and need to draw the line that bisects the corners as percentages of the rectangle. The example plot shows a range from 0% to 100% in 5% increments. Can this ...
0
votes
1answer
116 views

Plotting Limit Cycle

I have Lotka Volterra Equations where the prey equation is modified. The Equations are x'[t]=a*x[t]*(1-x[t]/k)-b*x[t]*y[t] y'[t]=-c*y[t]+d*x[t]*y[t] To plot the ...
2
votes
1answer
60 views

Need help with making an interactive 3D plot

My main problem is to generate a manipulatable 3D plot, combining three functions and two of those functions depend on another variable Theta (which shall be the manipulateable variable). To explain ...
0
votes
6answers
134 views
3
votes
2answers
101 views

How to Draw a 3D Scatter Plot Graph

Firstly: I am completely new to Mathematica, but I need to be able to create a 3D Scatter Graph with the following points: {0.000824, 15.8, 39.0}, {0.000507, 20.5, 39.6}, {0.000444, 20.5, 39.8}, {...
1
vote
2answers
217 views

How to find a graphical solution for extreme values using Lagrange multipliers

I need to find the maxima and minima of a function. I managed this analytically with no problem, but now I need to show in a graphic the intersection of the functions. My function is: ...
0
votes
0answers
50 views

Exporting model as STL file yields unexpected results

I have generated Costa's minimal surface using ParametricPlot3D but when I export it as an stl file (ultimately for 3D printing) it is just a few long thin strips. ...
0
votes
0answers
140 views

Converting a BSplinecurve to function [duplicate]

I am having two set of data. This is d000 and d001. The set d001 is a subset of d000. I am fitting the d000 data by using the BSpline of the d001 data according to the following commands: ...
0
votes
1answer
61 views

How to merge a ListLogPlot including a discrete set of data points with a LogPlot including some analytical functions?

I have an analytical 1d-function of a variable called $M$ and I have plotted that function using the following code: ...
0
votes
1answer
61 views

How to adjust PlotLabel

I make the PlotLabel for my plot by ...
10
votes
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, ...
9
votes
3answers
2k views

How to create an inverse pole figure color map

To interpret electron backscatter diffraction (EBSD) results, inverse pole figures are used. A three dimensional space of directions ([100], [110] and [111] for those who know about crystallography) ...
1
vote
1answer
55 views

How to draw an electric field without additional flux created in the middle of spreading from the charge? [duplicate]

I would like to draw an electric field. But from the condition of the electric field itself, the lines(or flux) should not be created again in the process of getting farther from the origin(or charge)....
3
votes
1answer
215 views

How to change parameters to equations of physical properties they belong to in an equation?

First off, I want to apologize for my poor English as I am not a native speaker. In my physics research, I had to solve a system of equations, from which I would get a solution for the speed of an ...
1
vote
0answers
54 views

Mathematica freezes everytime I try to rotate 3D stuff

So I created a simple Plot3D: Plot3D[Sin[x]Cos[y], {x, 0, 5}, {y, 1, 10}] When I try to rotate the plot Mathematica freezes and ...
1
vote
1answer
46 views

Why is the solution of NDSolveValue asymmetric when the regions it's solving over are symmetric?

I am creating a mesh over a 3D region and then using NDSolveValue to try and solve for a function over that mesh. The structure is fairly simple, just two polygon squares inside of a big cube. I ...
0
votes
1answer
48 views

How to increase the size of fonts and tick marks and numbers in plotting a contour plot in Mathematica 8.0?

I have some function of two variables, $x$ and $y$, and I would like to plot $x$ vs. $y$ parameter space probability distribution function in which the contours are represented by ...
0
votes
1answer
40 views

Convert numerical ticks to their textual meaning in BubbleChart

In my dataset (see below), the months are represented by a numerical variable. However, in my BubbleChart plot, I would like to have them represented by their name....
0
votes
1answer
52 views

ContourPlot not displaying the plot properly

I am having some issues using PlotPoints in ContourPlot. In the following code, depending on the ...
4
votes
6answers
321 views

Plotting “Terrain” with “Water” on them Using BarChart3D

It's easy to present a terrain using BarChart3D using ChartLayout -> "Grid"with the following code: ...
1
vote
1answer
64 views

Need help on simplifying the integral of a square root of a polynomial

I have the following expression a = 4 Cos[af / 2]^2; b = 1 - 5 Cos[af / 2]^2; c = Cos[af / 2]^2; s = Sqrt[a*x^4 + b*x^2 + c] and I need the integration of $s$ in ...
3
votes
1answer
5k views

How do I change axes scale?

I am plotting f[x_] := 2*x + 1 Plot[f[x], {x, -10, 10}] BUT I want to scale my axes differently. By default it is 1:2 , meaning 1 unit on $y$ axis is equal to 2 ...
5
votes
1answer
347 views

How do I produce a BarLegend with the default coloring of a ContourPlot, using Legended?

I have a series of ContourPlots that I want to compare in a GraphicsRow environment. I want to add a single legend for all three ...
4
votes
1answer
60 views

RegionPlot error

I'm trying to represent the following table using the command regionplot. The rectangle (0,0), (0.5,0), (0,1),(0.5,1) should be covered, however it is not. Does anyone know what the problem is? Thank ...
1
vote
1answer
40 views

Connect pairs of points in ListPlot by arrows

A have set of parameters (p1, p2, p3, l, ...) taken at different time. I would like to plot them connecting the same param. with arrows from older point to the recent ones so I could see evolution of ...
1
vote
2answers
64 views
0
votes
0answers
46 views

Generate list of pairs for a function in many varibels [duplicate]

In my previous post ListPlot with many variables I asked how to plot function f[x, y, z, d] versus x for varying ...
0
votes
1answer
123 views

Given $y$, find the $x$ value of a point on a Bezier curve

I have linear equation of Bezier curve with one control point: f[x_] := (1 – t)^2 x0 + 2 (1 – t) t x1 + t^2 x2; f[y_] := (1 – t)^2 y0 + 2 (1 – t) t y1 + t^2 y2; ...
2
votes
0answers
51 views

Help with GeoRegionValuePlot

I am trying to get a map with 4 colors, I have several regions with values from 0 to 3 and I want to color those regions with value 0 in white, with value 1 in yellow, with value 2 in orange and with ...