Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
0answers
28 views

Cannot use RotateRight function to move points in plot forward

I have a plot of activity which is matched to degrees of crank angle on the x axis. I want to move the plot forward by 180 degrees in to work to have the peak occuring at the beginning of the cycle,...
1
vote
0answers
20 views

ListDensityPlot do not show the exact color [on hold]

I use ListDensityPlot to plot a density contour, but it has some wrong white color. How can I fix them?
0
votes
0answers
57 views

Why is this code keep collapsing? It always let Mathmatica not respond even when the memory was 60% in use

Messages: Coordinate $CellContext` intersections[3] should be a pair of numbers, or a Scaled or Offset form. Coordinate $CellContext`intersections[Rational[-17, 10]] should be a pair of numbers, or ...
1
vote
2answers
61 views
1
vote
0answers
31 views

ListDensityPlot and DensityPlot do not give the same results?

I am plotting the same function using ListDensityPlot and DensityPlot but the output is different! There are some points where ...
2
votes
2answers
61 views

Labeling a plot point under the axis

This works well: Plot[x, {x, 0, 1}, Epilog -> Text[1/2, {1/2, 0.1}]] This doesn't (the "1/2" label is not visible): ...
1
vote
1answer
41 views

How to highlight the intersections between two surfaces in a 3D plot

I would like to see the intersection of a 3D function g with the plane z=0. ...
0
votes
0answers
39 views

Finding Fourier transform of a quantity v/s theta (0 to 360 degrees)

I have a physical quantity (experimentally measured) lets say T whose variation I have measured with angle (theta in degrees). I want to find out the Fourier components of this quantity with respect ...
5
votes
2answers
179 views

Plot problems: vertical lines and letters [on hold]

In few words, I would make this graph: My many problems are the following: How do I plot a vertical line? What's the equation? How do I add the letters on the lines? How to make the Ticks like $...
1
vote
2answers
79 views

Having trouble with Part

I'm very new to Mathematica. I'm just trying to plot some data, but Mathematica says there isn't a 7th element my data which is an array of 7 elements. The code before the plot is here: ...
0
votes
0answers
24 views

Let `PlotLabel` use data set names in a list of plots

In the code below, how to make PlotLabel automatically show the name of the data sets (i.e., aa, bb, cc)? ...
1
vote
2answers
65 views

How to fit different parts of a log-log 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
19 views

What won't ContourPlot show a non-empty plot? [on hold]

This is the code that doesn't work: ...
1
vote
0answers
37 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
30 views

If I create any Plot in Mathematica, the plot is empty [on hold]

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

why this graph is not plotting in mathmatica? [on hold]

I want to plot this function for time but why i am unable to plot this graph? ...
2
votes
1answer
50 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
35 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
53 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
42 views
2
votes
2answers
43 views
3
votes
4answers
110 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!!
2
votes
2answers
73 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
22 views

StreamPlot Failure

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

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

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

Log contour plot axis disappear after export to pdf [on hold]

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
20 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
38 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
150 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
41 views

How to plot rotated elliptical Gaussian beam in Cartesian coordinate [on hold]

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
102 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
38 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
34 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
82 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
35 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 ...
3
votes
1answer
260 views

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

Plotting several implicit functions with legends

Here is how I am plotting the three implicit functions: ...
1
vote
1answer
53 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? [closed]

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: ...