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
1answer
76 views

Why is an empty plot produced?

I am trying to plot the values of the functions f[x] and der[x], but I am getting an empty plot. I am new to both Mathematica ...
2
votes
3answers
69 views

One plot with different density functions in different regions?

As you can see in the following photo, there are 4 regions in the photo. Each photo has a different density function $T_i$. For ① $T_1=223+380 x+385y$ For ② $T_2=446+1080x+450y$ For ③ $T_3=108+...
2
votes
1answer
52 views

How to add the peak labels to an FTIR spectrum?

I have tried to plot the next FTIR spectrum and add their respective peak labels using Graphics and Show, but I think this doesn'...
2
votes
2answers
100 views

Flow over the circle

I'm trying to plot a vector field over a circle, Particularly the vector field in this plot: ...
3
votes
1answer
39 views

How to split overlapping values from different axis?

There are overlapping numbers in the plot below (the left down corner). The axis $T_e$ has the value $10^{0}$, and the axis $n_i$ has $10^9$. But the problem is that the values are imaged in the same ...
0
votes
0answers
145 views

Aligning plot axes of multiple figures results in different size of the FrameTicks

I defined a new FrameTicksStyle, but their size is changed when more than one figure are stacked vertically. However, the size is accepted when figures are stacked ...
1
vote
0answers
54 views

Drawing a Hasse diagram

I have a binary set and I want to draw a Hasse diagram for it. How can this be done? This is the set: ...
1
vote
0answers
41 views

How to scale the x-axis and y-axis non linearly, as per convenience? [closed]

Check the x and y axis. I want a command in which I can create such a plot.
5
votes
4answers
163 views

Plotting with different color for a single curve

How to plot a function $f(x)=\frac{3(4+x)}{3(2-x)-16}$ (say $x \in [-15,15]$ ) with the condition that i want to give different color for each of the following cases (i) when $\frac{x+4}{3x+10}>0$ ...
3
votes
3answers
130 views

Changing the opacity of lines on a plot based on their value

Suppose I have the following Association, ...
0
votes
1answer
76 views

Parameterization of boundary curve in Plot3D

I am considering a function of the form: u0 = p[1](Q1[1] - K1)/(p[1] - K1 + Sqrt[(K1)^2 - m1^2](1 - 2*alpha)); with p[1],Q1[1], and m1 being constant (set p[1] = 1, Q1[1] = 1/2, m1 = 0.1). Therefore,...
0
votes
0answers
55 views

Problems plotting labels

When i plot labels on a graph, then the text "field" is much bigger than the text itself. It gives some problems for me regarding placing the labels properly. Can someone help me fix this? see code ...
0
votes
0answers
50 views

Mathematica Online and Exporting Animations

I am using the online trial version of Wolfram Mathematica. I have created an animation and I am trying to export this animation as a video. I have tried ...
5
votes
2answers
173 views

Contour plot with positive and negative values

I want to make a simple contour plot with a function that takes positive and negative values (see below). I need the absolute values of the function to take the same shade in the contour plot (and ...
1
vote
1answer
43 views

Custom plot markers in DistributionChart

I would like to use the ChartElementFunction option of DistributionChart to plot data with a custom style that includes custom ...
0
votes
1answer
37 views

Avoiding distinct background appearing behind plo label text

I keep getting a light background behind my text when I use the PlotLabels option (see picture below). ...
0
votes
1answer
48 views

Why do I get error messages when I try to plot this function?

Question: Why do I get error messages such as "LessEqual::nord: Invalid comparison with 1. -1.59148 I attempted." when I try to plot the function f[z,k] defined below with for example the Plot ...
1
vote
0answers
36 views

Edit a code to become with combined animations

So in the following code, I would like to make the following animation. First: "t1" the blue line in the bottom together with "x,y,z" the blue lines in the top. So when "t1" finishes "z" finishes. ...
3
votes
1answer
112 views

Create surface by combining 2D curves

I'm trying to create a plot in which I look at the change of a curve as a function of a parameter. My problem is quite complicated so below you can see a simplifying example ...
1
vote
1answer
37 views

Combining two parameters in animation

I need to make the following animations on the torus : t=ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3+ Cos[v]) Cos[u], Sin[v]-12}, {u, 0, 2 Pi}, {v, 0, 2 Pi},PlotStyle -> Opacity[.4],MeshStyle->None] ...
1
vote
1answer
42 views

Hide a part of a graph

How to hide a part of a torus. I mean in the following torus ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3+ Cos[v]) Cos[u], Sin[v]}, {u, 0, 2 Pi}, {v, 0, 2 Pi}] I want to hide the shaded part
0
votes
2answers
58 views

Plotting Numerical Integration of Multiple Variables

I am trying to plot a multiple variable integral. But somehow this is not working. This is my code. ...
4
votes
1answer
312 views

How to fill the plot like this?

Plot[-x^3 + 2 x^2 + 8 x, {x, -5, 5}, Filling -> Axis] produces this What's the easiest way to change to something like this That is, I only need the two "...
1
vote
1answer
39 views

The labels in the plot don't appear

the labels in the plot doesn't appear, axeslabel, plotlabel and plotlabels. ...
1
vote
1answer
75 views

Plotting an integral

...
2
votes
1answer
56 views

Polar Plot Features

how can I add the arrow symbol in Polar plot figure (see the attached file), from the point (0,0) to the tangent point? code example: ...
0
votes
0answers
46 views

Plot a Polytope

I have to plot a 3d convex polytope, which is defined as the locus where a set of linear functions f_i are positive. My idea is to write something like ...
1
vote
0answers
80 views

Free energy surface plotting

Please feel free to move this to a different board if it doesn't fit the best here. I am working on trying to plot the free energy surface of ferroelectric materials, similar to the image below. Each ...
1
vote
2answers
63 views

Incorrect results from simple `Plot`?

I came across this bizarre behaviour whilst noodling around - a change in 'Plot' results... ...
0
votes
1answer
41 views

Plotting a contour on a surface

I can plot the graph of a 3D function and the solution of an equation like in the following example: ...
1
vote
1answer
140 views

How to plot this compound function?

I have a function w1(x1), w2(x2) and w3(x3), u1(x4) and u2(x5). Using these functions, I like to plot the deformed configuration of the structure, below is the undeformed configuration of the ...
0
votes
2answers
60 views

Automatic Manipulation of experimental data and plotting

I have experimental data which looks like this In the high positive and negative x-axis regions, my data is always linear, I want to extract the slope of data in these regions, take average and ...
1
vote
1answer
68 views

How to make a diagram and get the exact intersection points at the same time?

Here is the code. A part of the diagram is not a function. ...
2
votes
1answer
37 views

How can I fix an error when I try to draw a region function in a contour plot?

I am trying to draw a region function in a contour plot. My function has five variables and I want to reduce the number of variables by assuming some appropriate values for three of the variables. ...
4
votes
1answer
84 views

No shading in ContourPlot3D

Say you want to plot a horizontal plane using ContourPlot3D[x == 0, {x, 0, 100}, {y, 0, 100}, {z, 0, 100}] How to turn off the shading? I would like to have only ...
3
votes
1answer
44 views

How can I make a scatter plot from a matrix with many y-axis values for each x-axis value?

Consider matrix A = {{0, 2.54343, 3.566, 4.2323, 2.3434}, {0.1, 6.432, 4.6465, 5.656, 1.34}, {0.2, 0.3423, 1.6342, 3.323, 2.04}}; The x-axis values ...
1
vote
1answer
34 views

ParametricRegion not recognising list of variables

I am trying to use ParametricRegion to plot some parametric equations that can be in various dimensions. The full code is as follows: ...
1
vote
1answer
32 views

Editing the graph to become with animation

In the following code: p1=ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3 + Cos[v]) Cos[u], Sin[v]}, {u, 0, 2 Pi}, {v, 0, 2 Pi}] p2=ParametricPlot3D[{Cos[Sqrt[2] t](3 + Cos[t]), Sin[Sqrt[2] t] (...
7
votes
2answers
162 views

Animate a parametric curve [duplicate]

How can I animate the following curve? ParametricPlot3D[ {Cos[Sqrt[2] t](3 + Cos[t]), Sin[Sqrt[2] t] (3 + Cos[t]), Sin[t]}, {t, 0, 50} ] Can I also remove ...
2
votes
1answer
44 views

Replacing a line by a cylinder

How can I replace the line in the following graph by a tiny cylinder? parametricPlot3D[ {CosSqrt[2]t, Sin[Sqrt[2]t](3+ Cos[t]), Sin[t]}, {t, 0, 100}]
3
votes
3answers
130 views

How to plot a function with huge numbers?

I have a huge polynomial function P which is dependent on x, I tried plotting the function but I am getting nothing in the plot. ...
0
votes
1answer
38 views

Manipulation of a plot computed in several steps

the following test works for fixed parameter si: ...
0
votes
0answers
61 views

Animated wrapping line and wrapping cylinder

I am trying to draw the following situation using any graphic program but I couldn't since I don't know how to make the animation. So your help is greatly appreciated. So my picture consists of two ...
1
vote
1answer
46 views

Three questions to customizing `Ticks` in `Plot`, `LogPlot` and `LogLogPlot`

When making a plot, sometimes I would like to alter the ticks and labeling of the ticks, in particular when doing a LogPlot or ...
1
vote
1answer
30 views

Behavior of PlotLegends

I want to have a plot of $x^{\alpha}$, where $\alpha$ is an input, and a plot legend which displays something like $\alpha = \# \text{ rad}$ on the following plot, where # is determined by the input. ...
5
votes
1answer
50 views

Missing ticks and numbers on a plot when using JLink + Mathematica 11.3

I am facing a pretty random problem using JLink (Java) connected to a Mathematica 11.3 kernel and front-end. Basically I want to get an image using the JLink Java method ...
1
vote
1answer
80 views

Sharp jagged lines in Plot3D

I have the following function of five parameters of which I would like to construct a 3D density plot using Plot3D ...
2
votes
1answer
64 views

Inserting several lines in determined places of a 3D plot

I have a special list instead of which I create another one by a Table ...
3
votes
1answer
46 views

How do I store the results of NDsolve, in a table for plotting later?

Basically, I wanted to vary a parameter in my differential equations, while using NDsolve (ParametricNDsolve wasn't working for some reason, but that's for another question). I'm stuck looking for the ...