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

Storing a value in array during a for loop

So I have a piece of code below that is used to make a density plot and make the plot into grids, where I then find the center of each grid and store it in the varible called cp. The code for this is ...
0
votes
2answers
60 views

Plot MOSFET Simultaneous equations [closed]

Hello guys, I'm trying to plot the following two simultaneous equations within the same plot: ...
0
votes
1answer
35 views

Put a label near the edge of a Grid object

I have a Grid object and want to put a label near its corner or edge. The label will overlap with the boundary, not fully inside the ...
0
votes
0answers
35 views

How to creat a high-quality graph image for MorphologicalGraph to convert to graphs (it can't detect some edges in mine)?

I'm using MorphologicalGraph to convert images to graph. This is my source image: Following this and this, I tried ...
0
votes
1answer
81 views

How to make these lines smooth when using ContourPlot inside of a region?

Consider a region in the $(R,T)$ plane defined by the conditions $$0 < R\leq \pi,\quad |T|+R<\pi\tag{1}$$ Define $t(R,T)$ to be $$t(R,T)=\dfrac{1}{2}\left(\tan\left(\dfrac{T-R}{2}\right)+\tan\...
3
votes
2answers
110 views

PlotLegends Below and Inside of a frame

I whis to make that my labels are inside of the frame, as is shown in the following figure: How can I do it? The best that I did is with the following code: ...
0
votes
2answers
57 views

Plotting points of matrix

I have a matrix with 'n' rows and 3 columns where the first two columns are the X and Y values and the third column is f(x,y). All values are numeric. I want to do a 2D-plot where third column gives ...
1
vote
1answer
53 views

VectorPlot3D: How to add points into the 3D output as well as to its plane projection?

I'm asking for your help in adding the points to a VectorPlot3D output as well as to its projection in the plane, I had tried with VectorPoint, but I don't get what I want; I would like to keep the ...
-2
votes
2answers
164 views

How could this image be reproduced with MMA?

It is assumed that this image was obtained by computer-graphics, any idea to reproduce it, as I show it, thank you very much in advance.
1
vote
1answer
66 views

Modifying style of ticks

I have been using LevelScheme for a short time. In the beginning I was just trying to increase the size of the ticks in my plots and LinTicks worked pretty well. ...
1
vote
1answer
117 views

How to combine two scatter plots in a single plot with arrows showing the direction of time

The following code (most critical elements of which from @kglr) works just fine for generating separate scatter plots for two different years (2019 and 2020). My ...
0
votes
1answer
85 views

How to the plot results of a differential equation

Please help me to plot the solution of a differential equation as a parameter of Delta. Here is what I've tried. ...
0
votes
1answer
46 views

plotting a 2D dataset with different variable in thrree dimension

I have a dataset. I want to plot it in 3D using graphics3D. Following is my code which I have tried: ...
0
votes
1answer
49 views

Adding labels to simplex and removing extra axes

I am trying to remove certain parts from my 3d-plots and also add labels to the vertices. In the attached plot, I would only like to keep the 3d-simplex with all the blue lines. I would like to remove ...
0
votes
0answers
92 views

Plot disk in 3D is very slow

The following code(plotting disk in 3D) is very slow in Mathematica, how to optimize the code? ...
3
votes
1answer
153 views

how to obtain a plane projection of a `StreamPlot3D`

StreamPlot3D are rather difficult to decipher. Is there a simple way to obtain the projection of such a plot onto a given plane? Ideally, I am looking for a method which does not even create the ...
4
votes
1answer
164 views

How to make a graphic for Sieve of Eratosthenes with a legend

Definition The Sieve of Eratosthenes is a simple algorithm to find the primes before a given $n$. Starting from $n=2$ you delete all multiples of 2, and keep incrementing till all that are left are ...
0
votes
1answer
65 views

Plotting relationship between two variables when their relationship is given by a polynomial (2)

I would like to plot the following function $p$ in the $x$-axis and $V$ in the $y$-axis. The function is given by: ...
3
votes
0answers
77 views

Problem when exporting 3d plots to .EPS [closed]

A journal editor expects high-quality 3D plots (vector files such as .eps, .svg or .pdf) for my article. So, I'm trying to export 3D plots in EPS format. I know that there are many similar posts on ...
1
vote
0answers
61 views

The gridlines appear dimmed

After running the code: P1 = Plot3D[Cot[x - y], {x, 0, 2}, {y, 0, 5}, PlotTheme -> "Detailed"] Export["example.png", P1] I get the figure: ...
3
votes
1answer
56 views

How to calculate the derivative of the solution of ParametricNDSolveValue?

Consider the following code: ...
0
votes
1answer
59 views

Plotting relationship between two variables when their relationship is given by a polynomial

I have the following equation and I want to plot a graph with $\mathfrak{p}$ in the $x$-axis and $i$ in the $y$-axis. I don't have a specific range for $i$ but I would like to see what happens when $\...
0
votes
0answers
52 views

RegionPlot Calling User-Defined Function Not Working

This is following up on this post: Function not evaluating as expected I am trying to make a RegionPlot with Manipulate in which ...
2
votes
1answer
66 views

Boundaries problem with listdensityplot

I have to following list to plot (from FEM software) {coord xi, coord yi, speed (norm of) vi} : ...
1
vote
1answer
29 views

AxesStyle with ComplexListPlot gives error when attempting to increase font size

If I generate some data and use ComplexListPlot ...
3
votes
0answers
51 views

Smooth continuous curve from a ListPlot

I have to plot a set of numerical data with a smooth continuous curve (and I'm not interested in its functional expression). If I use ListPlot function without the Joined option, the result is the ...
0
votes
1answer
42 views

Resizing the graph of a function with radicals , Why?

I am trying to graph this function $c(t)=\frac{2-\sqrt{t+3}}{1-t}$ using this code, to see its behavior at infinity. I need that in the vertical axis appears the value when $t->1$ (The graphs ...
5
votes
0answers
45 views

Making Intersection of 3 Lines Calculation More Efficient

So I managed to optimize the calculation a little for looking for 3 line intersections in equally spaced points around a circle by only checking one "wedge" of the circle, ignoring ...
1
vote
1answer
79 views

'quiver' function in MMA (quiver(x,y,u,v))

How to calculate Quiver using the "quiver function" ("Matlab-like")? quiver(x,y,u,v) plots vectors as arrows at the coordinates specified in each corresponding pair of elements in ...
0
votes
1answer
30 views

Fill (shade) under a ListLinePlot curve between two abscissae (abscissas?)

I need to fill (shade) between a curve of a ListLinePlot and the axis. The goal is to show students a representation of a definite integral as the area under the ...
0
votes
1answer
45 views

Debugging code with Plot function. Full details

This is some code: The first plot (with the f[x,3]) gives me a graph. The second plot (with the 'numerical' form of f[x,3] given) does give me a plot How can I fix this so that the first line gives me ...
0
votes
1answer
64 views

I need to obtain graphical display of Mellin transform of any function in Mathematica [closed]

$$ \text{If}\ \ f(x)=\frac{1}{{(1+x)}^k}\ \ ,\ \text{then} \ \mathcal{M}\left\{\frac{1}{{(1+x)}^k}\right\}=\int_{0}^{\infty}{x^{t-1}{(1+x)}^{-k}\ \ dx}, =\frac{\mathrm{\Gamma}(t)\mathrm{\Gamma}(k-t)}{\...
2
votes
2answers
63 views

Colour coding a ListPlot from a 3rd string value

I'm trying to format a csv file to give a plot with x and y coordinates, but colour coded by a third value that is a string. I have no issue reading the data in and can plot the x and y coordinates. ...
1
vote
1answer
24 views

Ratio involving CDF and PDF of a standard normal random variable behaves unexpected when plotted

Good morning, I am plotting the function $h[x]$, see below, and obtain an oscillating behavior in the range $x \in [7.2,8.3]$ that cannot be explained by the function itself. Also for $x \ge 8.4$ it ...
4
votes
1answer
127 views

How to use ListLinePlot to plot a multicolored line, where the colors are given by an array?

I have a 2D dataset with three columns. The first two columns are x and y, the third one is z. I want to plot a line with the colors specified by the z data. Here is an ideal example, the only problem ...
1
vote
1answer
120 views

Plotting Intersection Points Between 3+ Lines

For a personal project involving a coordinate system for navigating the galaxy using 36/38 equidistant points around a circle, I need to find all intersections between 3+ lines using 3 pairs of points ...
3
votes
1answer
60 views

How to combine more plots in single image inside a loop

I was reading basic help here How to | Combine Two or More Graphics , but I did not get it. I have simple differential equation and want to change a constant "b" (in this case "damping&...
0
votes
1answer
66 views

Please help me for plot

...
1
vote
1answer
20 views

Manipulate: Display Slider Value in Custom Format

I am plotting two functions using 'Manipulate' and I am trying to change the way the values of certain adjustable parameters are being displayed. Here is a photo of the plot so I can refer to the ...
2
votes
2answers
124 views

How does Plot choose the points in a figure?

Taking a simple example, ...
0
votes
0answers
60 views

PlotRange is sometimes ignored

I have a relatively simple plot, and PlotRange argument seems to be ignored sometimes (Mathematica 12.1), any suggestions how to get it to respect the argument? <...
4
votes
2answers
149 views

How to include vertical lines in DiscretePlot?

There are several questions about removing the default vertical lines in a DiscretePlot, but my issue is that I want to show/emphasize the vertical lines in this DiscretePlot. By default they are not ...
0
votes
0answers
31 views

Issue with Piecewise Parametric Plotting

I am trying to make a parametric plot of a piecewise function that is defined locally. For some odd reason, Mathematica will only plot the first two pieces of the piecewise function. If I plug in ...
2
votes
1answer
100 views

Plotlabel too high issue (V12.3)

I think I started to notice this issue with plots when I updated to version 12.3 a couple weeks ago but didn't pay too much attention. Now it's really bugging me because I have a presentation of this ...
4
votes
2answers
135 views

Plotting ellipse with given parameters

How would I go about plotting an ellipse at a given center point x,y with a given angle, semi major axis length as well as the major axis length? My attempt I had tried to use the Ellipsoid function ...
4
votes
1answer
72 views

How to make a bar graph like this?

I've read some article recently and because I've been doing the same calculations so far, I wanted to have a graph like this: by the looks of it, it certainly looks like it was done in mathematica, ...
0
votes
1answer
35 views

Wide PlotMarkers Option For ListPlot?

0 I am creating some Listplots of some data with the following bit of code: ...
0
votes
0answers
40 views

Strange artifacts when exporting Plot3D images

I have a variable that stores a Show[] that has surface (Plot3D) and two Graphics3D objects. ...
1
vote
1answer
76 views

3-dimensional Plotting

I am trying to visualize 3-dimensional trajectories for a system of non-linear ordinary differential equations. Building on some very valuable help I received on this forum, I have the following code: ...
1
vote
1answer
53 views

Wide PlotMarkers For ListPlot? [duplicate]

I am creating some Listplots of some data with the following bit of code: ...