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
0
votes
0answers
4 views

How to get Thick and Black contour line in 2d list contour plot?

I simply want my contour curves to be thick and black at the same time. I tried ContourStyle -> [Black, Thick] and ...
0
votes
0answers
27 views

How to add vertical lines under points? [on hold]

Say I have a list x, and I want to draw a plot, so I will use the below code: x = RandomReal[1, 10] ListPlot[x] However, I ...
0
votes
0answers
28 views

Trouble to find a local minima of an energy using `FindMinimum`

I would like to reproduce the solid red curve in Fig. 1a of this paper. The total energy is given in Appendix A of the paper, and the curve is obtained by minimizing the energy with respect to the ...
0
votes
1answer
37 views

How to use “For” or other tool to plot points in a gragh?

Try a simple example about bifurcarion. The codes in MM are as follows: ...
1
vote
1answer
37 views

Plotting several implicit functions with legends

Here is how I am plotting the three implicit functions: ...
0
votes
0answers
34 views

Making cuts in a paraboloid of revolution modified

I need my to have like parabolic holes where the bumps or fins are ubicated, like in this image, so that they match with the same fins or bumps: The graphic I have was done with a paraboloid and the ...
0
votes
1answer
41 views

Plotting a disk with a z-value different to zero

I'm plotting a disk with ParametricPlot3d, but I need it to be drawn at z = 0.4, in order to join it with another plot. ...
1
vote
2answers
55 views

How can I get a contour plot with isometric scaling?

ContourPlot[x^2 == 0.5 (y - 1) y^2, {x, -3, 3}, {y, 1, 3}, Axes -> True, Frame -> False, AxesLabel -> {x, y}, AspectRatio -> 1/3] Mathematica 12 ...
2
votes
0answers
31 views

Generating a directed graph from a map of flows

I have generated a stream plot, with curves on it using the following code: ...
0
votes
1answer
55 views

How to substitute by NDSolve solution to plot a new function

Assume I got some function by NDSolve , like y(t) ...
1
vote
0answers
33 views

3D plotting: make some edges of the bounding box dashed

I am trying to produce a very simple 3D scatterplot with ListPointPlot3D[stratdatacleannew] with stratdatacleannew a list of ...
7
votes
1answer
60 views

Is there a PlotLabels placement such as “Above Left” or “Below Right”, etc.?

I am trying to add labels to a plot in specific positions. I give a simple example: ...
3
votes
2answers
71 views

ListPlot with 3

Is it possible to have 3 x axes labels like in the image below? I would like to have letters exactly under corresponding ticks. I am considering overlaying three plots with separate x axis together ...
5
votes
2answers
51 views

Change only one plotmarker in listplot

If you have multiple data sets in one Listplot. Is it possible to change the plotmarker for only one data set? I basically want to keep the default plotmarkers for data sets I do not specify. I would ...
0
votes
0answers
20 views

Plot a three-variable constrained function in terms of other functions

I want to plot the contour of a function of three variables, say $f(x,y,z)=2$. This function is subject to a constraint $g(x,y,z)=1$. In addition I want to plot $f$ against two other functions $f_1(...
7
votes
1answer
66 views

ColorFunction doesn't work with custom PlotMarkers

Bug introduced in 10.3.0 and persisting through 12.0 or later This works: ...
1
vote
1answer
55 views

Polar plotting Hankel Function with a lot of terms

I am trying to plot a normalized polar plot for the following function with different values of $a$ $$\left\lvert \sum_{n=1}^\infty i^n (2n+1) \frac {P_n^1(cos(\theta))}{\sqrt{\frac{\pi k a}{2}}[-H_{...
2
votes
1answer
64 views

Better curve fitting of sinusoids

I am trying to fit sinusoids to my experimental data of the form: $y= a+b sin(\theta)+csin(2\theta)+dsin(4\theta)$ and I am using the non-linear fit model. However I feel the data fitting is not good, ...
0
votes
2answers
45 views

How to auto scale plot

I have this large equation involving the variables x, y and I need to plot it with all its important features. How? Is there an auto fit/zoom feature? ...
2
votes
1answer
30 views

How to draw different vectors in different points in a co-ordination space?

suppose I have four vectors: v1,v2,v3,v4 at the positions (1,1),(1,-1),(-1,1),(-1,-1) respectively in position space in xy plane and the two dimensional components are (0.5,-0.5),(0.75,0.1),(0.4,0.6),(...
0
votes
0answers
41 views

Plotting discontinuous functions

I want to plot the two roots of a polynomial function. At some value of the variable x, they "swap" and the lines change. However, I want each branch to have te same line style. Is it possible to ...
0
votes
0answers
34 views

Animation (Manipulating the cubic)

Consider the cubic f(x)=x^3+2x^2-28x+2, defined on the interval [-10, 10]. Draw a red chord between two points on the cubic. (That is, choose two points on the graph and connect them). Through the ...
0
votes
1answer
47 views

Editing the graphic generated by ListDensityPlot

I have generated a graphic using ListDensityPlot in Mathematica, I want to make following three edits to it, but not finding a way. Would be thankful for any advice. How to rotate the graphic. My ...
4
votes
2answers
97 views

Why Mathematica draw additional contour curve on zero area?

I am trying to make a 3D contour plot I calculated in c++. I read in the results as tables and used the function ListSliceContourPlot3D. Everything looks fine except on the top layers where some area ...
1
vote
1answer
32 views

Different colors for each curve in a Plot[Table[],{}]

I'd like to plot a few curves in a plot but with different colors, like in this code : ...
1
vote
1answer
33 views

Log-Log histogram with custom bins

Using: Histogram[list, {"Log", 10}, {"Log", "Count"}] I get a log-log histogram, while usign Histogram[list,{{bin list}}] ...
0
votes
1answer
26 views

Independent scaling of arrowheads and vectors in vector plot

I'd like to scale with independent parameters the vectors and the corresponding arrowheads in a vector plot. The basic code is as follows: ...
2
votes
1answer
58 views

JavaGraphics` and CreateDialog don't work with ListPlot in Mathematica 11.3/12

Bug introduced in 11.2 and persists through 12.0, case 4331202 I'm trying to see some plots based on data from a remote cluster as it runs various Mathematica 11.3/12 scripts, so I want to use the ...
0
votes
0answers
26 views

Need help with plotting a probability distribution

I looked through the Mathematica directory and could not find a solution that is right for me. I already solved the mathematics behind this problem, I just need to visualize it in a plot. I am ...
1
vote
0answers
36 views

How to get ListContourPlot to label all of the contours?

I've been trying to get ListContourPlot to work for me on a large set of data, and I feel like I'm failing at the most basic parts of formatting. I've tried piecing together bits of code from here and ...
1
vote
1answer
44 views

Cumulative difference between discrete cumulative distribution functions

I would please like to ask for how to cumulate and plot the difference between cumulative disitribution functions (:=CDFs). Example: ...
0
votes
0answers
35 views

Making a list plot with error bars in gray [on hold]

I know how to do it with ErrorListPlot, but now in Mathematica 12 with Around in ListPlot, I ...
1
vote
1answer
41 views

Manipulating two parameters of a plot

I am wondering if it is possible to manipulate/animate two (or three) parameters in a plot. I would imagine this would work, but doesn't: ...
1
vote
1answer
47 views

Adding units to frame label

I have this code: ...
0
votes
1answer
36 views

Animation in 2D graph

Hi I have a question on how can I create an animated 2 points (dot) that move across the n number of the data point, as shown in my 2D graph? ...
1
vote
1answer
22 views

Given W(t) as a standard Wiener process, how do I plot $t \, W(1)$ for $0\leq t \leq 1$?

I've plotted $W(t)$ using timestep = 1/250 data = RandomFunction[WienerProcess[0, 1], {0, 1, timestep}] ListLinePlot[%, Filling -> Axis] Now I need to plot $W(...
0
votes
0answers
53 views

How I can plot Vector3DPlot?

I want to reproduce the vector 3D plots as shown in the figure. It's in spherical polar coordinates (i.e. vector 3D plot on plane). The angle [Theta] is spherical coordinate is determined by the ...
0
votes
1answer
36 views

Using NMinimize with Table to plot an energy

I would like to reproduce the solid blue line of Figure 2a in this article. For this, I have used the code found here. Notice, however, that I am not succeeding. Could you help me? Here is my code: <...
0
votes
0answers
41 views

How to make an entire plot dashed [on hold]

...
0
votes
0answers
39 views

Vector field of point charges [duplicate]

I need help in plotting vector field or stream field. Can you please help me to plot electric field of these 13points standing on a circle which are all positive with same magnitude. The code for this ...
1
vote
0answers
27 views

The Show function consistently only shows the first graph [duplicate]

The whole purpose of the Show function is to be able to compare multiple graphs, but mine just plots the first one. I've cleared all, and Cleared Global multiple times--and redefined data1. This isn't ...
0
votes
1answer
51 views

Plotting a Wavefunction [closed]

I am trying to plot a wavefunction for a 1D Particle in a box. I attached my code below, when I run it, it shows a plot with no lines on it. I am new to mathematica, so I am not sure what I am doing ...
7
votes
2answers
384 views

How to plot two axis bar chart side by side

I want to plot a bar chart using the given data, I am trying to plot by given code but chart only slightly displaced( I want it to the side by side) ...
0
votes
1answer
38 views

No result returned on ContourPlot with specific relation

For reference, I am using Wolfram Mathematica 12.0. I am attempting to plot the complex subset defined by: $|z+6|+|z-6| =1$ where z is a complex number $z = x+ i y$. Utilising ContourPlot directly ...
0
votes
1answer
21 views

DensityPlot, RegionPlot, and ContourPlot Runtime with NMinValue

I need to make a DensityPlot, a RegionPlot, and a ContourPlot of a function MinΔBG that I've defined in the code below, but my problem is: the DensityPlot of the ...
0
votes
1answer
20 views

Plot with substitution of domain values before evaluation of function

I have a function of two variables $f(x,y)$. I find the maximum value of $f(x_0,y)$ by first substituting the value of $x=x_0$ and then maximizing in the range $0<y<1$. My question is: How to <...
10
votes
2answers
476 views

Using Terminal` (ASCII plots) in Wolfram 12

I was interested in exploiting the Terminal` package, as demonstrated in this post, to show some ASCII plots straight through the terminal of my Raspberry Pi Model 3 B+. However, it doesn't seem that ...
1
vote
1answer
41 views

ListPlot of Table comes back empty

I am trying to do something I assumed would be simple, but I'm hitting a roadblock and I don't know why. I have the following table: ...
1
vote
0answers
53 views

how to solve nonlinear differential equations which calls other functions that uses states and time as input while solving NDSolve?

I have nonlinear differential equations which require output from other functions and those functions require time and some states as input. I'm writing the Mathematica code bellow the equation. $p=...
2
votes
2answers
63 views

WaveletListPlot: Broken in 11.2?

I'm trying to create a WaveletListPlot, following the reference code exactly: ...