The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
15 views

How to fit different parts of a plot

I have data of a function that goes like $f(x)\propto x ^\alpha $ for a certain range of $x$ and like $f(x)\propto x^\beta$ for another one. It is common in the literature to make a log log plot and ...
0
votes
0answers
8 views

What won't ContourPlot show a non-empty plot?

This is the code that doesn't work: ...
0
votes
0answers
16 views

Assigning labels to numbers in ListContourPlot

I am trying to plot some 2D data using ListContourPlot. The quantity to be plotted has only three discrete values 0, 1, 2. While plotting them, I want to assign these numbers some labels say A, B, C, ...
0
votes
0answers
14 views

If I create any Plot in Mathematica, the plot is empty

I have no idea what I have done. Even when I open a new notebook and try to plot a simple plot, returned is an empty plot. For example: ...
0
votes
0answers
38 views

why this graph is not plotting in mathmatica?

I want to plot this function for time but why i am unable to plot this graph? ...
2
votes
1answer
45 views

How to plot a wave like curve by using existing data?

I am trying to draw a time vs. position graph with these data: t = {0, 0.47, 0.92, 1.37 ,1.8, 2.21} p = {0 ,11.3, 4.2, 10.5, 5, 9.5} But since the data does ...
2
votes
1answer
28 views

Interpolating and subtracting two sets of data

I have a data set "data9k" with x varying from 0 to 365, and another data "data0" set with x varying from 0 to 365. But the x values for both data sets are not same but similar. I want to subtract the ...
1
vote
1answer
50 views

why some parts of my curve are removed or wiped

When I try to draw the next code I get a curve with missing parts, as shown in the picture. I do not know if it is an precision problem in the Mathematica program or is some data not calculated. Or is ...
0
votes
0answers
31 views
2
votes
2answers
41 views
3
votes
4answers
106 views

how to make tree plot to 100 rows

[ I know how to make finite tree plot(small row numbers), but how can I make this thing continue to 100 rows? Thank you very much!!
1
vote
2answers
71 views

To find the point of Intersection of two line in Mathematica

How to find the intersection point of two lines exactly, the lines are generated using some data. The x-axis is on the logarithmic scale and the y-axis is on a linear scale. ...
0
votes
1answer
20 views

StreamPlot Failure

In versions 11.3 and 12.0, the following causes StreamPlot to fail: ...
0
votes
1answer
36 views

How do I find horizontal asymptotes of f(x)=7x+2/sqrt 9x^2+4 [on hold]

How do I find horizontal asymptotes of f(x)=7x+2/sqrt 9x^2+4
0
votes
0answers
19 views

Log contour plot axis disappear after export to pdf

I have the following code that produces a plot: ...
2
votes
1answer
19 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. ...
2
votes
1answer
19 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
30 views

Log contour Plot does not plot the whole range

I have the following code: ...
2
votes
2answers
37 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 ...
3
votes
2answers
34 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: ...
5
votes
1answer
147 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, ...
-2
votes
0answers
39 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. ...
6
votes
4answers
98 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...
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:...
1
vote
1answer
45 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 ...
4
votes
1answer
32 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. ...
2
votes
1answer
70 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: ...
1
vote
1answer
34 views

Logarithmic contour plot floating point precision

The following code plots the difference between two functions in a contour plot. ...
1
vote
1answer
34 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
39 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 ...
0
votes
0answers
28 views

How to add vertical lines under points? [closed]

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
0answers
193 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 ...
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: ...
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 ...
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. ...
1
vote
2answers
57 views

How can I get a contour plot with isometric scaling? [on hold]

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
59 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
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 ...
7
votes
1answer
64 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
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 ...
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 ...
0
votes
0answers
25 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
102 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
66 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
67 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? ...