Questions tagged [plotting]

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

9,660 questions
98 views

Can the Assuming function be used with ContourPlot or DensityPlot?

I'm new to Mathematica, and for most purposes the program has served me well and been straightforward. However, I'm hitting a snag while trying to create a contour plot for the distribution function ...
25 views

Concatenating MaTeX with a computable expression in PlotLabel

To produce a graphics grid, I would like the PlotLabel to be a concatenation of graphics such as "y="//MaTeX and the value of an ...
51 views

Manipulate plot and sound of a function simultaneously

I've an amplitude function (see below). I want to manipulate both a plot of this function and the sound it makes with the same sliders. Is this possible? ...
42 views

Manipulate Sine plot [closed]

I want to plot Sin[a*x] and have used the following code: Plot[Sin[a*x], {a,0,10},{x, 0, 10}] But I am not getting any plot. Any Ideas?
38 views

ListPlot and list manipulation

I have the following list data = {{1, 2, 3}, {2, 4, 9}, {3, 8, 27}} I would like to plot second part with respect to first part but third part with respect to ...
48 views

Unexpected breaks in a smooth plot

I have the following code leading to a broken plot. However, I physical intuition (based on the problem I am dealing with) says that there should be a continuous curve. ...
74 views

Divergent series not correctly plotted

I have a problem about the plotting of a function which is defined as the power series F(\eta)= \left[1+\frac{10.75}{\eta^{15/4}}+O\left(\frac{1}{\eta^{15/2}}\right)\right]^{-7/4} \biggr[1 + \frac{...
35 views

Show will not display all my curves over their full domain [closed]

My Show expression showing four curves will not display the all four curves over the full domain requested in the PlotRange ...
104 views

How to convert a ListContourPlot into a primitive usable with Graphics3D?

Consider a dataset such as the one you can find here. Using ListContourPlot on this dataset we get something like the following: ...
69 views

Plot two functions on the same plane, $y=f(x)$ and $x=g(y)$

I'm trying to plot two functions. In general, this is not a difficult task, thanks e.g. to the command: ...
40 views

Using previously defined function in ColorFunction

I want to use a previously defined function as part of a function definition for ColorFunction. I tried the following and it worked: ...
52 views

Why is StreamPoints not seeding correctly?

I am attempting to make a parametric stream plot of a dynamical system that is seeded along a line of points. For some reason, Mathematica inconsistently seeds at these points and will actually ...
167 views

How to remove lines through the legend markers in ListPlot?

I am drawing a plot with some legends. It seems the legend markers will always have lines through them since I have to use Joined->True for this plot. The legend ...
58 views

MMA not showing bounding box for 3D plots

I'm not sure if this is a problem with MMA or my sytem but I'm facing a strange issue with 3D plots. MMA is not showing the bounding box it just displays the plot. Do any of you know the possible ...
86 views

Flipping axis on a LogPlot

I want to modify the question in Flipping axis on a plot. How to flip y-axes on a LogPlot? In contrast to Plot, LogPlot does not allow for the ScalingFunctions option so that the first solution ...
40 views

Plot a parametric curve subject to some condition

I have a parametric curve described by $(x(s,t), y(s,t))$ where I would like to consider $-1\leqslant s,t \leqslant 1$ subject to some additional constraint, say $f(s,t) = 0$. I know I could solve for ...
39 views

How to Plot a function f[x] wirh x running from max to min? [duplicate]

I want to plot a function f[x] so that argument x would go from larger x1 to smaller x2. However Plot[Log[x], {x, 2, 0.1}] draws the same picture as ...
72 views

Visualize manifold specified by equalities [duplicate]

Suppose I have two nonlinear equalities $x^3 = y^2, y = z^3$. How can I visualize the manifold in $\mathbb{R}^3$ that is generated by simultaneously satisfying the two equalities? I think ...
80 views

Preventing “-Graphics-” Output from ListPlot[] Command

Whenever I try to create a Graphics object in a Mathematica notebook, the output is always "-Graphics-". I have searched and found others who had similar problems, but attempting to implement these ...
42 views

Plot a function for different values of parameters

I have a function: u[r_] := 1/2*(uj + u∞) - 1/2*(uj - u∞)*Tanh[1/4*Rθ*(r/R - R/r)] Where: uj = 1; u∞ = 0; R = 1; I want ...
40 views

Combining two plots with different domains into one [closed]

How can I combine the following two plots in one figure: Plot[x, {x, 0, 1}] and Plot[1/x^3, {x, 1, ∞}]
134 views

Custom 3d histogram

so I wondered if there is a way to use histogram list such that it doesn't bin in quadrat mode, but given a set of 3D points, could bin over a tessellation of some regular tetrahedrons/hexagons/...
37 views

Function I have defined will not plot [closed]

My Mathematica plot is coming out as blank. I am trying to plot my eigenfunction Ψ1. Here is my code. What am I doing wrong? ...
39 views

Wrong output of RegionPlot

I think Mathematica goes wrong if asked to plot this very simple region: Region2 = ImplicitRegion[x < -1 && y < -1/x, {{x, -3, 0}, {y, 0, 1}}] by ...
68 views

How to get point coordinates from a plot in Mathematica v11?

I have been using the points of Mathematica plots for more than 25 years and it suddenly does not work any longer in version 11: ...
41 views

Issue with number formatting in Bar Legend

I have a contour plot with a bar legend, and I'm trying to format the labels of the bar legend. But something funny is happening. Here is a basic example that illustrates my issue: ...
44 views

The easiest way to plot two columns vs together

If I have two columns of data 1 and 2 col1={{1},{2},{3}}and col2={{4},{5},{6}} which each of them has 3 rows for example, what ...
403 views

Is it possible to rotate the Isolines on a Surface Using MeshFunction?

This came up in a different context but some expertise in 3D surfaces or the graphic options would be appreciated. I'm trying to extrapolate the curves from any given surface and things seem to be ...
56 views

Heat conduction problem with boundary at $\infty$

This is a 1-D heat conduction problem for a circular rod with 5cm, $T(x,0)=0$, $T(\infty, t)=0$, left boundary is insulated. I am trying to use the finite numerical method. My first question is how ...
28 views

How to Plot the temperature and heat flux of the heat conduction problem [duplicate]

**This is a 1-D heat conduction problem for a circular rod with 5cm, T(x,0)=0, T(0,t)=100, T(infinite, t)=0. I am trying to use the finite numerical method, how could I plot the temperature profile ...
80 views

Create an animation that plots the following two functions

How do I create an animation that plots the following two functions? Let x vary from 0 to 15, set the y-values to range from -90 to 90 and include the fill between them. Do not include the axes in the ...
111 views

Bug in VectorFieldPlot[] with InterpolatingFunction[]?

Bug introduced in 11.3 or earlier and persisting through 11.3.0 or later While looking at How do I Plot a Divergence?, I thought to suggest the following as a solution to the OP's problem (where <...
92 views

How to get a 2D Plot from a 3D Listplot?

I have the following ListPlot3D , where C is specific Heat , T temperature and ...
76 views

Putting a vertical line in each Histogram using GraphicsGrid

I'm using GraphicsGrid to show several histograms. In each histogram, I would like to show 2 vertical lines on the 2.5 and 97.5 percentiles. If I had an isolated histogram I would use Line, and Show....
89 views

How do I draw a function along with a particular tangent line at a specific point? [duplicate]

I would like to draw a function (x/x^2+1), and at a certain point, i'd like to draw a dot along with the tangent line at that specific point. what I have tried is the following: ...
52 views

Mathematica Plot [closed]

How can I plot List in Mathematica
43 views

Animating Smooth Density Histogram

I have a large data file (~500 MB), which I import as ...
81 views

Using Image Transformation to create image sky view of what its like to be near black hole (Not a wormhole) [duplicate]

Question : I am trying to carry out point 3. "Implementing map" on page 13 in the paper Interstellar wormholes using my own equations not those in the paper. however am not 100% sure on how to go ...
27 views

Manipulate and Graphing Multiple Functions on the same Axis [duplicate]

Can Anyone help me out graph both function and its tangent line on the same xy axes, please? ...
54 views

Distance between axes and tick labels

A similar question has been axed before in the context of a Framed plot: see here. My plot is unframed so I wasn't able to apply the answer to the other question. I create a histogram with the code ...
48 views

Problems with continously varying Tube radius

Problem I am trying to plot Tubes made from the Tube function with varying radii. At one point there is a discontinuity and the radius of the tube is much ...
56 views

Two dotted lines for reference distribution in QuantilePlot

I'm using QuantilePlot to assess if my data fits a normal distribution using Mathematica 11.3. My data set is large, 500000 points. A histogram of my data plotted with a normal distribution visually ...
71 views

ErrorListPlot crops error bars

The default behaviour of ErrorListPlot often crops error bars, as in the example below. How can this be fixed in a clean way? ...
96 views

Smooth Density Histogram bounded on non-rectangular domain

I'm trying to plot the Smooth Density Histogram of a double pendulum (particularly the location of the bottom pendulum). Since a pendulum has physical constraints, when shown in the Smooth Density ...
61 views

Region plot in the $xy$-plane of $f(x,y,z) < 0$

I want to plot the region in the $xy$-plane which satisfies $f(x,y,z) < 0$, where $z$ can take values in the range [-1, 1]. How do I do this in Mathematica?
86 views

Plot trajectory of a point using Mathematica

I'm new with Mathematica and I want to make a simple animation to plot the trajectory of a point. For example, the parameter function is sin(t) and ...
59 views

How to color Contours in ContourPlot with custom ColorFunction

I am plotting a contour as ContourPlot[f[x,y]==f0,{x,0,1},{y,0,1}] and I want to use my custom ...
74 views

How to plot space of bistable solutions?

I have the following ODE system dx1 = -0.7 x1 y2 dy1 = 0.7 x1 y2 + 1.7 (1-x1-y1) y2 - y1 dx2 = -0.7 x2 y1 dy2 = 0.7 x2 y1 + 1.7 (1-x2-y2) y1 - y2 I have found ...
Intuitively, an angular vector field $\theta(x)$ such as the following would describe a domain wall between two vortices/strings of opposite winding number. I would like to draw this on a computer ...