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

How to change plot markers in ListPolarPlot [duplicate]

I've been trying to draw a polar plot using the ListPolarPlot function with custom marker shapes. However, when I use PlotMarkers...
5
votes
1answer
140 views

How do I plot a plane AND a graph in ONE 3D Plot?

I want to plot the Van der Waals-equations, specifically the part in which the Van der Waals loop is shown. First I tried plotting it with the Plot3D[] function, ...
0
votes
0answers
15 views

Log contour plot axis disappear after export to pdf

I have the following code that produces a plot: ...
2
votes
1answer
14 views

DensityPlot: Error messages and strange bar legend

Bug introduced in 11.1.1 or earlier and persists through 12.0 I want to plot the following DensityPlot with axes given by Trr ...
1
vote
1answer
14 views

How to specify coordinated of legend box using Show and Epilog functions?

I am trying to place the legend box using epilog function. I'm unsure where I can specify the coordinated in the sample code to specify the position. ...
1
vote
1answer
29 views

Log contour Plot does not plot the whole range

I have the following code: ...
2
votes
2answers
31 views

Using PlotRangePadding given as a range with ListContourPlot

When I am trying to use PlotRangePadding with a fixed range (not symmetric with x and y axes) for a graphic generated by ListContourPlot, it is coming back with an error message that PlotRangePadding ...
2
votes
2answers
27 views

Remove extra space between functions and labels, when subscripts are used

I want to plot a function for different values of my parameter, 'y_a', where a is a subscript. Here is my code: ...
1
vote
1answer
37 views

PlotLegends don't match the plot's curves

Can anyone help me make the legends(markers) match with the figure curves? I have 2 figures that have three curves each, and then I have to combine them. I used the following code for the first figure:...
2
votes
0answers
111 views
+100

Finding local minima of an energy defined by integration

This question is also asked here and here. I would like to reproduce the two solid curves in Fig. 1a of this paper. The total energy is given in Appendix A, and the curve is obtained by minimizing ...
-2
votes
0answers
36 views

How to plot rotated elliptical Gaussian beam in Cartesian coordinate

I want to plot a rotated elliptical Gaussian beam (major axis on 45 degrees or between x and y-axis, I tried using given below code. ...
1
vote
1answer
74 views

How to fix the plot Range in list log linear plot

I have 8 plots, and all these plots are generated using ListLogLinearPlot function. and later I have used Show command put all plot in one single figure, but could not able to fix the plot range. <...
1
vote
1answer
44 views

Use special characters or regular characters with BubbleChart

I have a list of points I want to plot. I'm trying to use BubbleChart because I want to assign to each point a different shape. How do I plot a BubbleChart with each point drawn with a different ...
6
votes
4answers
619 views

Visualizing the complex map $f(z)=z^2$

I would like to visualize the complex map $f(z)=z^2$ as the following picture (see Visual Complex Analysis by Tristan Needham) shows: Naively applying the code in an answer I got something far from ...
1
vote
1answer
33 views

Logarithmic contour plot floating point precision

The following code plots the difference between two functions in a contour plot. ...
2
votes
1answer
59 views

A question regarding 3D plot

Updated I have an equation: $x (z \ln z) = y$. For different values of $x$ and $y$ we can solve this equation for z, for example, for $x = 3$ and $y =1$, we have: ...
4
votes
1answer
30 views

Plotting with sub and superscripts on the PlotLabels

Bug persists through 12.0. I'm trying to produce a plot with PlotLabels that include sub- and superscripts. However, I haven't been able to do it consistently. ...
1
vote
1answer
32 views

Contour Plot not taking previously defined expressions?

I am new to Mathematica so my question might sound a bit silly, but I hope you help me. While learning ContourPlot, I have learned that when I use the previously ...
0
votes
0answers
35 views

How to modify the horizontal ticks in a LogLinearPlot? [duplicate]

Using the following code, ...
2
votes
1answer
38 views

Plot3D: Plot a piecewise function with different colors when plotting multiple function

I am plotting two functions in two variables and one of them is a piecewise function as given below. I am trying to get different colors for each of the sub-function of the piecewise function. ...
3
votes
1answer
38 views

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

I am trying to make contour plot of a 20*20 matrix using the function ListContourPlot. I want the contour curves to be thick and black at the same time. So I tried ...
1
vote
1answer
52 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 ...
1
vote
2answers
81 views

Combine points in 3D space by ListPointPlot3D

I have a array and I want to plot it in 3d space by ListPointPlot3D function. ...
0
votes
0answers
23 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(...
0
votes
0answers
28 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 ...
2
votes
1answer
62 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 ...
1
vote
2answers
56 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 ...
0
votes
1answer
40 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
38 views

Plotting several implicit functions with legends

Here is how I am plotting the three implicit functions: ...
0
votes
1answer
45 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. ...
0
votes
1answer
57 views

How to substitute by NDSolve solution to plot a new function

Assume I got some function by NDSolve , like y(t) ...
0
votes
1answer
50 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 ...
0
votes
1answer
80 views
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: ...
7
votes
1answer
85 views

ColorFunction doesn't work with custom PlotMarkers

Bug introduced in 10.3.0 and persisting through 12.0 or later This works: ...
3
votes
2answers
74 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 ...
1
vote
1answer
63 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_{...
1
vote
0answers
35 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 ...
5
votes
2answers
53 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 ...
4
votes
2answers
98 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 ...
7
votes
1answer
62 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: ...
2
votes
1answer
66 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
46 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
31 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 ...
60
votes
3answers
4k views

How can we make publication-quality PlotMarkers without version 10?

Suppose that for certain reasons we are not yet using Mathematica version 10, or we have a version with buggy PlotMarkers. It is well known that the default markers ...
1
vote
1answer
34 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}}] ...
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 : ...
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: ...