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

Never ending story - impossible to export animated gif of a ListAnimate

I am trying to export an animated GIF file which is the result of a NDSolveValue computation (see below). The notebook is working fine and fast when I want to make a 3D plot of the solution, for ...
1
vote
0answers
70 views

Excluding points from 2d plot

I am trying to plot certain regions using ContourPlot and RegionPlot in two dimensions. From these implicitly defined contours I ...
0
votes
1answer
33 views

LayeredGraphPlot: How to remove one arrow from the edge of the LayeredGraph and keeping the other arrows visualized?

I used "LayeredGraphPlot" in the simulation of a schema. I would like to remove the two green arrows while keeping their edges, and the other arrows of the graph. How should I proceed to ...
1
vote
1answer
76 views

VectorScaling on VectorPlot produces vectors of wrong length

I'm trying to plot the following VectorField: VectorPlot[{x/Sqrt[x^2 + y^2], y/Sqrt[x^2 + y^2]}, {x, -5, 5}, {y, -5, 5}] I want to use a VectorScaling-option such ...
2
votes
1answer
94 views

<<JavaGraphics` for ListPlot still not working in 12.2 [duplicate]

Bug introduced in 11.2 and persists through 12.2. A previous answer by Lukas Lang gave some hope, where he outlined a method to change how the $DisplayFunction ...
0
votes
0answers
45 views

Help needed with equation and plotting using WolframAlpha or Player

Some time ago I bumped to this formula: Sin[x]*((Cos[2*Pi*k*Cos[x]]*(HarmonicNumber[k*Cos[x] - 3/4] - HarmonicNumber[k*Cos[x] - 1/4]))/Pi + 1) in some thread at ...
3
votes
1answer
123 views

Colouring components of ContourPlot

I am trying to use different colours to plot components of a ContourPlot in Mathematica. The contours are sufficiently complicated, such that I do not expect there ...
2
votes
1answer
51 views

How to plot solutions of a 3-variable equation, two variables normally, and the third one to change with colors? [duplicate]

I have this three variable equation $$4 \sinh (2 y) \cosh (z-x)+5 \sin (2 x-y)-6 x+y+3 \cosh (2 z)=0$$ where $$0<x<4\;,\qquad-3<y<0\;,\qquad0<z<2$$ I want to have a continuous plot (...
0
votes
1answer
64 views

ParametricPlot3D with variable plot limits

I would like to use ParametricPlot3D in the following general way: ParametricPlot3D[\[Sigma][u,v],{u,0,2Pi},{v,-f[u],f[u]}]. ...
1
vote
1answer
52 views
1
vote
0answers
10 views

How to display order of magnitude for ticks in ListLogPlot? [duplicate]

I have tried many ways of doing this, but cannot figure out what mathematica wants me to do to make it work. The simplest example of what I want to do is this, I want to change the vertical axis to ...
0
votes
1answer
49 views

Is it possible to plot a 3-variable function, two variables normally, and the third one to change with color?

I have a function like $$f(x,y,z)=4 \sinh (2 y) \cosh (z-x)+5 \sin (2 x-y)-6 x+y+3 \cosh (2 z)$$ where $$0<x<4\;,\qquad-3<y<0\;,\qquad0<z<2$$ I would like to have a plot of this ...
0
votes
0answers
16 views

How to create an average plot of net-profit of companies

What I want to do is to get let's say 10 companies from the tech sector into a list (I can do that manually, no problem) but then I would want to plot the net-profit of these companies with one graph, ...
0
votes
0answers
18 views

How to manipulate time on a geographic map

First I've input: ...
0
votes
1answer
34 views

How to change axis as a variable

I run the example: Clear["Global`*"] F = x^2/(a^2 + x^2); ParametricPlot[{a x, F}, {a, 0, 4}] But failed. My object is replace (a) as (a*x), then use ...
0
votes
0answers
23 views

Use the plot information as an input in some math calculations

If i want to have X and y axis numbers in matrix to use them for math calculation how should I do it here? If I had ...
1
vote
1answer
62 views

How to obtain numerical solutions of a system of two equations with two unknowns?

I have two equations with two unknowns $-10<x<0$ and $0<y<15$ $$3 y \cosh (4 x) \cos (y)+(2 x+5) \cosh (x) \sin (y)=0,\\3 x \cosh (x) \cos (y)-(2 x+5) \sinh (x) \cos (y)=0$$ I would like ...
2
votes
0answers
34 views

LayeredGraphPlot: How to control the style of the edges? [closed]

I am trying to plot a graph using LayeredGraphPlot; I would like to change the style of the edges commented out inside the following command to dashed lines with different colors: ...
0
votes
0answers
31 views

Plot legend markers with type of line

I want to put the markers symbol and the line type together in the Plotlegend. I have used the following code ...
-1
votes
1answer
43 views

Rescaling x axis without altering y axis

I have a plot as follows: ...
0
votes
1answer
59 views

Are there commands other than ListPlot3D for plotting 3D points, where one coordinate ls either 0 or 1, and the other two lie in [0,1]?

I have a set of 3D points, the first coordinate of which, say, is confined to the values 0 and 1, while the other two can assume values within the unit interval [0,1]. ListPlot3D shows a continuous ...
0
votes
2answers
63 views

Plot with constraints [closed]

How can I plot Plot3D[{1/(2 Sqrt[2] x y)}, {x, 0, 1}, {y, 0, 1}] such that the only portion gets plotted for which $x^2 + y^2 =1$?
0
votes
1answer
104 views

Plotting a complete graph with a given image as vertices [closed]

I am trying to plot a complete graph using a png image for the vertices. I tried a "drag and drop" approach with VertexShape, but the software gets ...
0
votes
1answer
46 views

Zoom in plot when we have multiple plots and have used show function

I have a plot that I made with the help of the show function. But I need to zoom in on this plot I tried once but it is not enough I need to zoom until I see the difference between gray dots green ...
0
votes
1answer
105 views

Sketching a PDF function (discrete)

I have this distribution: $Probability = 2/(\operatorname{cosech⁡}(x))(k x^{2k}))/((2k))$ for $k$ = 1 to infinity. How can I do a sketch for any value of $x$?
1
vote
0answers
55 views

Is it possible to resize Canvas?

I would like to create Canvas with width along x is doubled the value along y. In ...
0
votes
1answer
45 views

Slot in the code

I am given the following code in my notes: ...
0
votes
1answer
40 views

Plot a line colored set by value of a different list

I have a model, see code below: ...
2
votes
1answer
79 views

Is there a way to overlay two DensityPlot3D graphs

I'm trying plot 3D wave functions around potentials. I'd like to show the potential function on a DensityPlot3D, and the resulting wave functions on the same graph....
2
votes
0answers
30 views

Global LabelStyle option does not work with SetOptions

I want to set global options for a plot, so I used the SetOptions command. However, some of the options don't seem to be applied. More specifically, this is the ...
3
votes
1answer
106 views

White / colorless regions in plots

I made the following contourplots, with Mathematica 12.2.0.0 however they show color-empty regions, which is apparently an error in the plotting or in the representation of the function. Does anyone ...
2
votes
1answer
107 views

How can I combine two parametric plots in a continuous one?

I'm studying the Ekman spiral for piecewise uniform viscosity. So I have two velocity components (u,v) for every layer. One pair for the sufrace and one pair for the layer below. ...
0
votes
1answer
43 views

Plotting a multivalued function [closed]

So I have a function A *Sech[A *(x - c t)]* Exp[i*[(c/2) *x + (A^2 - c^2/4)* t]] And I want to plot it but I'm not sure how. How do I specify each variable and ...
0
votes
0answers
25 views

Plot a two variable function against the ratio of the two variables

So I have a non-trivial two-variable function, $f(p, M)$. I would like to make a 2d plot of this function against the variable $\frac{p}{M}$ i.e. the ratio of the two parameters. The tricky part is ...
0
votes
0answers
39 views

How can I plot complex functions which take small values?

I would like to know, how can I plot some functions that have oscillating behavior each function can be plot independent. The goal is to show both oscillations even is they are very small values. ...
0
votes
0answers
10 views

Given a Graphics[] without any changes in PlotRange, can we make it output the PlotRange it is using? [duplicate]

When we use Graphics[], the standard PlotRange is All. Given a ...
1
vote
1answer
36 views

Cannot combine graphic objects while plotting two Smooth Histograms

I am trying to plot two smooth histograms, which I'm generating separately so I can chose their PlotStyle separately. When I run the code, it says I cannot combine the two graphic objects. What am I ...
2
votes
0answers
34 views

Changing the color and thickness of smooth histograms of two sets curves on the same graph

I have a code (shown below) where I generate two different sets of data and plot the two sets as a smooth histogram on the same graph. The code works pretty well. What I'm having an issue with is ...
1
vote
2answers
51 views

Error when integrating with constants?

I'm trying to integrate an ellipse: (x^2)/alpha^2) + ((y^2)/beta^2) = 1. I am not sure if I should have insert constants for alpha and beta or if there's a way to keep them there. This is my code <...
0
votes
1answer
37 views

Automatic display of a calculated parameter in the legend of a graphic

I was struggling to find a way to display a value which I constantly change automatically on a graphic. In this case, I want to display ...
0
votes
1answer
84 views

How to plot a hexagon inscribed on a cylinder in 3D? The cylinder is hollowed out in the form of a hexagon (Mathematica)

I want to plot a hexagon inscribed on a cylinder in 3D using Mathematica. Edit1: I would like to define its direction by means of a vector
4
votes
3answers
180 views

How to find absolute minimum with NMinimize

So I have a trefoil and twisted cubic that are very close to intersecting but do not. I know NMinimize can be used to best approximate the minimum, but it ...
0
votes
1answer
36 views

How to interpolate on log-log scales? I.e., How do I create an interpolation function which interpolates Log[x] vs Log[y]?

I would like to build and interpolation function that takes in x & y data points and interpolates between them logarithmically in both x and y. I see that this a reply on this post (Interpolate on ...
0
votes
1answer
60 views

Fixing error message that results instead of a line plot

I am trying to run the function to perform a plot but instead, I am getting the error: ...
4
votes
2answers
152 views

Plotting a parametric function on xy, xz, and yz planes

I'm trying to plot a trefoil with a parametric function in Mathematica. How would I do that? I know I can use Parametric3D to depict all of it but how do I project it on the XY, XZ, and YZ planes? It'...
1
vote
1answer
40 views

Colors in RegionPlot legend

I'm trying to put a common legend for two-row RegionPlot. However, I haven't been able to get the colors in the legend right: ...
0
votes
0answers
20 views

arrow color of vectorplot3d

I would like to create a vortex field. I have a problem with the color, I expect to obtain a uniform color, but depending on the view (i.e tilting the geometry) I observe the different color, How I ...
0
votes
1answer
68 views

How to generate vector field of $y'+2y=x^2 e^{-2x}$

I'm trying to generate the vector field of $y'+2y=x^2 e^{-2x}$ using VectorPlot. How should I do this? Thanks
7
votes
1answer
110 views

Prevent rasterization of a simple Plot with a ColorFunction?

Whenever I output figures for academic research papers, I try as much as possible to prevent rasterization, which is one of my personal quirks, I guess. I have succeeded so far using Mathematica, but ...
2
votes
1answer
84 views

Plotting equation of motion in mathematica [closed]

Suppose I have an equation of a moving body in Newtonian Mechanics e.g. $ax^2=(b/t^4)+(c/t^2)$ how can I plot a x-t graph in mathematica with a range for the constants a, b and c from 0 to 5 with ...

1
3 4
5
6 7
261