Questions tagged [plotting]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
65 views

Why are parametric plot coordinates different from image?

I am creating parametric equations of objects to find their centroids. With some help from others in a different stack exchange post, I was able to find some code that can accurately parametrize any ...
4
votes
2answers
65 views

Construct, in some manner, a four-dimensional “RegionPlot”

Let me abuse some Mathematica notation and formulate the following "command": ...
5
votes
1answer
70 views

Customize ColorData function

I am trying to customize the color data ColorData["AvocadoColors"] I want to make color data function of the gradient starting from the green to the white ...
1
vote
2answers
43 views

ListStepPlot with two axes of ordinates

I have the following vector: ...
0
votes
0answers
34 views

sine-Gordon equation using pseudospectral method [on hold]

I want to try this code what is the problem ? I tried this from https://reference.wolfram.com/language/tutorial/NDSolveMethodOfLines.html When i tried this i got ...
1
vote
0answers
20 views

Plot Audio DAta

I am a beginner in mathematica. Currently i am working on audio file my problem is when i extract audio information using BinaryReadList and try to plot it works with mono wav file but cannot get ...
2
votes
0answers
35 views

Encoding spatial data in Mathematica

I am doing some experimentation with machine learning and robotics, and want Mathematica to be my primary platform. For it, I need to represent a room with some obstacles (circles) and a goal (square)....
0
votes
0answers
40 views

Plotting a maximization of a definite integral

I am applying Alex Trounev's approach suggested in this post. It worked for the function in that post. But it is now not working for another, more complicated function. My objective function is $f=\...
0
votes
0answers
60 views

3D-plot of a maximization of a definite integral

I'm applying the answer (If method) suggested by 'ThatGravityGuy' in this post in a more complicated case. Consider my objective function (pardon its formidable ...
1
vote
2answers
38 views

How to plot the result of Grad function?

When I calculate the gradient of a two dimension function like $r=\frac{1}{\sqrt{x^2+y^2}}$ with the syntax of h[x_,y_]:=Grad[1/r,{x,y}] and when I checked the ...
0
votes
1answer
38 views

Manipulation of a plot computed in several steps

the following test works for fixed parameter si: ...
0
votes
1answer
38 views

Plotting Function in a function not working

I consistently have problems using the plot tool when I want to find how some function (like maximization) varies as I change a parameter. In this example, I want to find how a function's imaginary ...
3
votes
1answer
25 views

How to add a Locator to a Manipulate / ListPlot?

I have the following Manipulate to graphically show the n-th roots of unity: ...
0
votes
1answer
59 views

Mathematica quits its calculations automatically

I am trying to plot the ListPlot3D but mathematica quits calculations without any warning or error. ...
3
votes
0answers
27 views

Error bars disappear in ListLogPlot when some points can't be plotted

Bug introduced in Mathematica 12.0? I'm having a problem: all the error bars disappear in ListLogPlot,ListLogLinearPlot, and <...
0
votes
0answers
15 views

Plot points corresponding to angles on a circle with mathematica and add labels [on hold]

Using Mathematica software, I would like to : Plot a circle Plot angles on the circle corresponding to a list of angles Insert angle labels for the points Example : List of angles in Deg = {0, 30, ...
2
votes
0answers
63 views

Does ListPlot Joined Dotted crash front end reproducibly for large number of points?

The problem The following code crashes Mathematica 12 for Windows 64 front-end reproducibly in my computer (Win7 Pro, i7-4770 3.4GHz 16Gb RAM). ...
3
votes
3answers
170 views

3D-Plot with an inequality condition for parameter values

I'm trying to ListPlot3D the following function $f=\frac{-\frac{(t-1) (d-s) \left(2 c d (d (q-1)+s)-s \left(-2 d^2+d (s+2)+s^2\right)\right)}{2 s^2}+d^2-d s-d t+s ...
5
votes
1answer
46 views

Missing ticks and numbers on a plot when using JLink + Mathematica 11.3

I am facing a pretty random problem using JLink (Java) connected to a Mathematica 11.3 kernel and front-end. Basically I want to get an image using the JLink Java method ...
3
votes
4answers
157 views
2
votes
2answers
131 views

Overlay barcharts with same vertical axis

I want to construct a bar chart for which the last bar is two bars stacked, while the others are not stacked. My thought had been to create two bar charts and overlay them. The challenge I have is ...
3
votes
3answers
89 views

How to classify data and deal with it as needed?

I have a list of data describing the coordinates (x-, y-axes) of points in the plane. For the same axis x, there may be several points and if the number of coordinate is odd just neglect the first or ...
0
votes
1answer
44 views

Plotting an integral where the integrand depends on the parameter values (`If`)

With my function $f(x)$ I would like to Plot3D $\int_a^b f(x) dx$ with the parameter values $a \in [0,1]$ and $b \in [1,3]$. The challenging part has to do with ...
1
vote
1answer
66 views

Converting an Image into a Mathematica Plot?

Consider the following graphical representation of the No Free Lunch Theorem found from Google Image: What I'd like to do (if possible) is convert this into a Mathematica Plot so that I can (i) ...
3
votes
3answers
91 views

How to plot multiple functions from a list

I'd like to get separate plots for the functions in a list, and I'm trying the following, which doesn't work. What is the correct way to do that? ...
4
votes
1answer
44 views

Missing Contours in ContourPlot

I have the following function: \[Phi]re[{x_, y_}] := With[{z = x + I y}, -Re[ z - 1 - ProductLog[Ceiling[(y - \[Pi])/(2 \[Pi])], Exp[z - 1]]]] Also I have ...
4
votes
1answer
301 views

Animating magnetic field lines on a circle

So I want to create a changing vector as a function of theta and have it's origin stay on the path of a circle. The vector I want to plot is: ...
0
votes
1answer
104 views

How do I get precise results with MonteCarlo?

I have a multidimensional integral (5D), which every time gives a different result with the MonteCarlo strategy. I tried different methods (MultiPeriodic, ("MonteCarlo", "QuasiMonteCarlo" with "...
2
votes
4answers
85 views

Sorting polynomials based on their y value and finding their intersection

I've got the following list of polynomials, ...
5
votes
2answers
81 views

Using Images for Points in ListPlot

I'm using ListPlot to label a sequence of ordered pairs in $[-1,1] \times [-1,1]$: Question: How can I make these points show up as images (from the web, etc) ...
0
votes
1answer
50 views

How to plot weighted sum of functions?

Consider a series of functions like Table[Cos[k t], {k, 1, 2, 1/10}] which are summed up together with some weights ...
0
votes
3answers
87 views

How can I calculate the expected value of the sum of “n” i.i.d. variables with any distribution?

Particulary, I would like to find the expected value of the sum of $n$ variables distributed like ParetoDistribution[1,1.14]. For example, this works for the sum of two vars with Gamma distribution: <...
2
votes
1answer
73 views

Why will points in the Epilog “get lost” when combining two plots using Show? [duplicate]

I need to mark four points in a single graph, math does it separately, but when I put together both graphs, two points of a line disappear, I really do not know why. ...
3
votes
3answers
429 views

How to change the colour of parts of a 3D plot, rather than the whole figure?

By exporting Matlab data to a txt file and importing it with List3DPlot, I plotted the density of states in a nanowire ...
1
vote
2answers
50 views

PlotMarkers - are there default common shapes available?

I'm generating a ListPlot and wanting to use Open Markers like in the 2nd example here, however I don't want the word "Open Markers" - I just want open circles/diamonds etc. Are there default shapes ...
2
votes
1answer
42 views

ListDensityPlot: How to show blank space where no data exists, instead of interpolation

When plotting data with ListDensityPlot, 'empty' points in a grid are interpolated, even when InterpolationOrder is set to zero. ...
0
votes
0answers
54 views

Finding area between curves formed by csv data

I have a bunch of Differential Pulse Voltammetry data I am trying to import into Mathematica, and find the area between each curve and the blank. So far I have used the following commands: ...
1
vote
1answer
52 views

How to set the position of the axis label in program?

I have studied the relational contents through the webpage Placing x-axes label below rather than at end of axes, but not found: (1)How to put annotation on the left of y axis and display the graphic ...
1
vote
1answer
57 views

3D Plot multiple maximization results in one same diagram

My objective function, $f(r,k;s,d)$, takes three different expressions, denoted by $f^1$, $f^2$, and $f^3$, respecitvely, depending on the conditions for the arguments and parameters as follows: $f^1(...
2
votes
2answers
68 views

Solve implicit equations and plot solutions as parameter changes

I have the following two implicit equations that are functions of a parameter $f \in (.5,1]$. I would like to solve these two equations (i.e get $\sigma_D$ and $\sigma_M$) for different $f$ values and ...
0
votes
2answers
48 views

Can anyone please help me to plot the following list of complex values?

I tried to plot the complex values in Mathematica using the following code ...
1
vote
1answer
25 views
6
votes
2answers
181 views

Extracting points from 3D plot that lie along an arbitrarily oriented line

Starting from i.e. the following 3d plot: d = RandomReal[1, {100, 3}]; ListPlot3D[d] Is it possible to extract points that lay along an arbitrarily oriented line,...
3
votes
2answers
57 views

Using `PlotLegends` with a `ColorFunction`

Is there a way to put a legend mark with a color function rainbow? For example: ...
2
votes
0answers
32 views

Parsing Org-Mode Timelog Data

Suppose we have in ~/time-data/time-data.org the following data: ...
3
votes
1answer
66 views

Defining plot theme as a function of two parameters

I would like to define a new PlotTheme as a function of two variables {x,y}, how can I do that? Here is my try: ...
64
votes
7answers
9k views

How to plot Venn diagrams with Mathematica?

How does one plot Venn diagrams with Mathematica? I've searched quite a bit and I've found one source at MathWorld which provides the source code for doing them. But I don't understand this code, can ...
3
votes
3answers
125 views

How to plot a function with huge numbers?

I have a huge polynomial function P which is dependent on x, I tried plotting the function but I am getting nothing in the plot. ...
2
votes
1answer
253 views

How can I load << MathWorld`Curves`?

I'd like to recreate in Wolfram Programming Cloud the plot in http://mathworld.wolfram.com/notebooks/SpaceCurves/Slinky.nb How can I load << MathWorld`Curves`...
0
votes
0answers
34 views

Why do all the Roots not show up in ContourPlot of an equation?

Roots by Normal Method: f[x_] := (Sin[x] + Cos[x] - Sqrt[2]) Sqrt[-11 x - x^2 - 30]; Reduce[(Sin[x] + Cos[x] - Sqrt[2]) Sqrt[-11 x - x^2 - 30] == 0, x] Which ...