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
3answers
34 views

plot each column separately

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 ...
4
votes
2answers
173 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 ...
1
vote
1answer
45 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. ...
0
votes
2answers
74 views

Opacity or related issue with DensityPlot3D

I'm trying to make use of the function DensityPlot3D with the following specific example ...
2
votes
3answers
195 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 ...
3
votes
1answer
70 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 ...
0
votes
1answer
28 views

How do I add a plot label in this case?

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

ListPlot draws nothing

Consider the following simplified example: ...
4
votes
2answers
139 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: ...
5
votes
2answers
171 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 ...
5
votes
1answer
101 views

Visualizing Riemann surface (two branches) of logarithm

I'm trying to plot two branches of the complex multi-valued function: (In a previous post - linked above-, Mathematica found the branch cut of the following function between -1 and 0) $1-z\ln[(1+z)/z]...
1
vote
0answers
64 views

Why do I always have a grey corner on my plot?

I have encountered a very wired plotting issue: I had a script to plot 6 triangles together in one graph as below (first figure). However, as you could see there are always two grey parts in the ...
0
votes
0answers
34 views

MaTeX in the labels

Writing Plot[Sin[2.5 x], {x, 0, 2}, PlotLabel -> Framed["a=1.5" // MaTeX]] I get the expected labeled plot: However, if I just change ...
3
votes
3answers
441 views

Plot a specific branch of a multi-valued complex function

Let's say I want to plot a branch of the following function $f(z) = \sqrt{z(z-1)}$. Let $z = r_1 e^{i\theta_1}$ and $z-1 = r_2 e^{i\theta_2}$. How can I tell Mathematica to plot the branch for which $...
0
votes
1answer
36 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 ...
8
votes
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.$
11
votes
1answer
168 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 ...
9
votes
5answers
769 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}) \...
0
votes
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,...
1
vote
1answer
53 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 ...
2
votes
1answer
59 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)? ...
1
vote
0answers
22 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 ...
1
vote
1answer
57 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 ...
0
votes
2answers
183 views
2
votes
1answer
102 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). ...
1
vote
1answer
39 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. ...
2
votes
1answer
55 views

Callout mystery

I have this function: de[a_, x_] = -1 + (E^-x x^a)/((-a + x) Gamma[a, x]); When I do ...
1
vote
2answers
926 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 ?
2
votes
1answer
93 views

Plot feasible region of a high-dimensional LP only along some dimensions

I have a question on the possibility of using Mathematica to plot a convex closed region satisfying a linear system of equalities and inequalities. Let me first present the linear system. Let $x\...
0
votes
1answer
102 views

Plotting Integral of Exponential functions

I am trying to Plot an integral equation that involves exponential function. My code is as follow, ...
1
vote
0answers
139 views

Mollweide Projection of a Sphere [duplicate]

I want to recreate the following picture for a project. However, I am not sure how to do this with Mathematica. Is there an easy way to obtain just the "background" picture of the sphere without the ...
2
votes
1answer
60 views

Unwanted mesh line in spherical plot

I am trying to create a spherical colour plot on which the mesh will rotate with manipulating the \phi1 variable. I read this solution and gave it a try with the following code: ...
1
vote
1answer
46 views

Plot a sinusoidal function with some parameters

I have the function myfun[a1_, a2_, a3_, b_, θ_, ϕ_] = a1 + 2 a2 + 3 a3 + b Cos[θ] + (a1 Cos[ϕ] + a2 Sin[ϕ]) Sin[θ]; The parameters satisfy $\sqrt{a1^2+a2^2+...
5
votes
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 ...
1
vote
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. ...
0
votes
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 ...
4
votes
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 ...
1
vote
2answers
96 views
0
votes
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
0
votes
0answers
30 views

how to change axis range [closed]

I wanted to plot a function with different form of axis range
7
votes
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 ...
6
votes
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 ...
1
vote
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}; ...
1
vote
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 ...
3
votes
2answers
257 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?
14
votes
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 ...
2
votes
1answer
48 views

How to include Thickness for surface in Contour Plot? [duplicate]

ContourPlot3D[ f(x,y,z) ==0, {x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax},ContourStyle-> Thickness[2.0]] Like in this case Thickness does not appear to Show: <...
0
votes
0answers
6 views

How to reverse ArrayPlot Axis labeling [duplicate]

I have an odd incompatibility between Frame labeling and DataRange and DataReversed in ...
0
votes
2answers
141 views

Finding a numerical solution and plotting it over a wide range

My problem is that I am trying to find a Numerical solution to a function of the form f(x,c)== K for x for some given values of c, K, and plot this function over a wide range of values of c. My ...