# Questions tagged [plotting]

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

10,226 questions
Filter by
Sorted by
Tagged with
1answer
96 views

### Unexpected results from ListContourPlot

Bug introduced in 8 or earlier and persisting through 12.0 I want to use ListContourPlot and I have lists such that, ...
0answers
18 views

### Getting error message RegionPlot3D::boolf

I want to visualize the bounded region for a linear programming problem. I used the folowwing, however it gives me an error : ...
3answers
6k views

### ListPointPlot3D with connected points?

With the command ListPlot[data,Joined -> True] I can visually connect adjacent data points in the array with lines. However, this option appears to be missing ...
3answers
54 views

### plot each column separately [duplicate]

I have an 800*161 matrix and I am trying to plot each column with respect to the 1st column.so I tried the following code ...
2answers
179 views

### How to put the parent node higher than the children nodes in a drawing for a graph?

I have a tree as below. Graph[{7 -> 2, 2 -> 3, 3 -> 4, 3 -> 5}, VertexLabels -> "Name"] However, I want the drawing would put parent nodes at a ...
1answer
49 views

### Graph lines with points at the ends

I want to graph ten lines (of a single color) with points at the ends. The points are "cells" and the lines are "veins". I have tried it as follows. ...
2answers
75 views

### Opacity or related issue with DensityPlot3D

I'm trying to make use of the function DensityPlot3D with the following specific example ...
3answers
201 views

### Graphing a solid between two structures using spherical coordinates

How can I graph the solid that lies above the cone $z=\sqrt{x^2+y^2}$ and below the sphere $x^2+y^2+z^2=z$? I tried ...
1answer
75 views

### How to plot a Histogram and compare with a particular probability density function PDF

I would like to know how to plot a make a comparison between a histogram and a set of random data, I have the following probability density function (PDF) which is given for this problem. I can ...
1answer
28 views

### How do I add a plot label in this case?

I am fitting these data: ...
1answer
315 views

### ListPlot draws nothing

Consider the following simplified example: ...
2answers
142 views

### To plot branch cut of logarithm

I like to see the branch cut of the function: $$1 - z \ln[(1+z)/z].$$ If I plot it in the complex plane: ...
2answers
173 views

### Show two plots together: a two dimensional curve tangent to the maxima of a three dimensional plot

I have a list containing 3 columns and 6552 rows which can be found here. The plot of data is shown below: We have a cross cut ...
1answer
106 views

1answer
37 views

### ListDensityPlot and interpolation order

I am working on a project that takes arrays of data and visualizes them using ListDensityPlot. I noticed, when I imported an array from a CSV file, the last column ...
4answers
651 views

### Plotting in polar coordinates, simple implicit curves

How can I plot $\theta=\cos r$ in polar plane? Of course I know that it is different from $r=\cos \theta.$
1answer
171 views

### What is the best way to use errors in mathematica M12?

Since ErrorListPlot has been superseded by new functionality in ListPlot for Mathematica 12.0, what is the best way to handle ...
5answers
801 views

### Polar contour plot in Mathematica?

I am following a text on fluid mechanics with MAPLE examples. I want to do the following ContourPlot in Mathematica in Polar coordinates:  (r^2-\frac{a^3}{r}) \...
3answers
351 views

### How to show decimal points on the axes frames in mathematica?

I have a set of data g1 and when plot using n1, i got the plot shown in figure below. I need to change the x-axis label from (1,2,3,4,5...) to (1.0,2.0,3.0,4.0,5.0) and y-axis label from (50000,...
1answer
55 views

### Plot Using User-defined Coordinates

Suppose instead of using Cartesian coordinate $\vec{x}=(1, 0)$ and $\vec{y}=(0, 1)$, I want to define new coordiates $\vec{a} = (1,0)$ and $\vec{b} = (\frac{1}{2},\frac{\sqrt{3}}{2} )$. And when I ...
1answer
60 views

### Vector field Stream?

The following graph shows the vector plot. How can I plot the solid lines which represents how the vectors are spatially varying and both on the same graph (vector plot and stream field)? ...
0answers
23 views

### Plotting an NDEigensystem solution over a helicoid

I am trying to plot the solutions of a particular Hamiltonian eigensystem over a helicoid. In other words, my solutions are a function of the radial variables (r,$\phi$). The Helicoid is given by the ...
1answer
58 views

### How to plot special contour lines for a “Ridge System” of complex function?

Mathematica makes it very easy to to plot the contour lines for a function of two real variables using ContourPlot. It also makes it very easy to plot the ...
1answer
128 views

...
2answers
183 views

### How to plot a function for various values of 2 constants

I have a function like this: ...
1answer
103 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). ...
1answer
41 views

### How can I Plot lines in different colors from a data in Graphics 3D?

I want to plot all these different line in different colors to visualize them better. But all I get is the black color for all of them. ...
1answer
56 views

### Callout mystery

I have this function: de[a_, x_] = -1 + (E^-x x^a)/((-a + x) Gamma[a, x]); When I do ...
2answers
928 views

### Plotting vector field in polar coordinates

Is there an easy way(other than painfully decomposing into Cartesian components) to plot a vector field in polar coordinates? Basically I have a vector function $\vec V (r,\phi,z)$. How do I plot it ?
1answer
93 views

1answer
116 views

### Can you dimension the frame in a plot with absolute unit e.g. cm? [duplicate]

Is it possible to set the height and width of a plot in absolute units for in $\rm{cm}$? Ideally I'd specifically like to control the frame size for when the plot option ...
2answers
43 views

### Restrictions as string to expression in region plots

I'm trying to build a function that generate a string of restrictons to pass on to a region plot with ToExpression, but I think it fails to pass the plot variables. ...
1answer
58 views

### How to get separate ListPlots into a single ListPlot with legends and labels

I am currently getting 2 seperate plots for the stress variation with t as shown in the picture below. I would like to get them in a single plot with legend to distinguish them. Could someone please ...
3answers
247 views

### How can I improve the speed of computing region intersection?

I have a polygon defined by a list of nodes (x,y). I want to cut the polygon by a horizontal line at position y = a and get the new polygon above the position y = a. I am using the RegionIntersect ...
2answers
96 views

### How can I combine two contour plots into one and give it a bar legend?

I have these contour plots: ...
0answers
31 views

### Mathematica Scalar Field on 3D Space

Fellow Mathematicai, is there any way to create a visual plot of a Scalar Field on 3D space in Mathematica? With Gratitude, - SDH
0answers
30 views

### how to change axis range [closed]

I wanted to plot a function with different form of axis range
1answer
85 views

### Why call to StreamPlot terminates kernel each time?

FYI, reported to WRI [CASE:4288967] By mistake, I put x range starting from negative to make StreamPlot for expression with ...
1answer
57 views

### why this call to StreamPlot returns unevaluated? (no error message, no beep)

I am really baffled by this. Call to StreamPlot does not return empty plot, nor an error message, nor a beep. It just return unevaluated. I do not think I've seen ...
1answer
41 views

### Combine a List of Plots: Using MapThread with Show [closed]

I have a list of graphics p1 = Plot[x Sin[x] - 1, {x, -2.5, 2.5}] p2 = Plot[Evaluate[D[x Sin[x] - 1, x]], {x, -2.5, 2.5},PlotStyle -> Red] ListNew = {p1, p2}; ...
1answer
121 views

### Rescaling and Image Padding Issues with GraphicsRow

I am trying to get a row of plots (which include legends and labels) using GraphicsRow, with vertical heights of the plots equal. I manually set the size and image padding of these plots so that the ...
2answers
258 views

### Plotting octahedron inside the sphere and sphere inside the cube

How to plot an octahedron inside a sphere and the same sphere inside a cube in 3d?
4answers
587 views

### Using Mathematica to create an H-Tree

Can folks show me several methods I can use to draw the following fractal H-Tree? I did use Free-Form input, as: = h-fractal And got this image, which is three ...