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

Animate not showing half of the range when not defining the increment parameter (continuous form)

My question is why half of the graph is not shown when not defining the increment parameter (i.e 200)? The first image is the continuous case and the second is the discrete case.
0
votes
0answers
38 views

Same code in different files, one works but another does not, what went wrong? [closed]

I want to NDSolve a partial differential equation. When I entered the code in my currently working file, a problem arises as shown in the pic below.› However, the code I used is no different from an ...
2
votes
1answer
59 views

How to plot different dependent varaibles against the same independent variable

Let's say I have a dispersion relation $\omega=\exp{k}$, how should I write a mathematica code to ask for plots of $\omega$ against $k$ as well as the phase speed $\omega/k$ against $k$ for a range of ...
0
votes
0answers
33 views

Increase font sizes of axes density plot [closed]

I am using DensityPlot function. The font size of the numbers on the axes are a bit small and I would like to increase the font size. I found this Making axis numbers larger on Mathematica plot. I ...
1
vote
0answers
42 views

Why RegionPlot plots only the first equation?

I want to RegionPlot three regions, each of them are $$t_1<t<t_2<0, \quad t<t_1<t_2<0, \quad t_2<t<t_1<0,$$ but it seems that the ...
3
votes
2answers
107 views
1
vote
1answer
72 views

Plot function with infimum over specific domain

I'm fairly new to Mathematica. Im trying to plot a function but i cannot seem to get it right. The function is: $f:\mathbb{R} \to \mathbb{R},f(x)=inf\{\vert x-k\vert \vert k\in \mathbb{Z}\}$ I tried ...
0
votes
0answers
53 views

Problem with Plot, result is $Failed [closed]

Plot[4 + 3 x + x^2 - x^3, {0, -3, 3}] I am doing a simple plot function but I am getting the output $Failed I am not sure what ...
0
votes
0answers
68 views

How to combine multiple plots in a single plot? [closed]

I am getting some problems in combining these multiple plots. The peaks which I want to show in a single plot are not appearing. What should I do that these peaks will appear in a single plot? If ...
0
votes
1answer
72 views

Plotting a phase plane portrait of an oscillatory system?

I am trying to plot a phase plane portrait of the following system: dQ/dt = v*(z - Q)*(w^2 + Q^2)/(1 + Q^2) - Q dz/dt = k - Q where v = 1, k = 0.2, and w = 0.05. So far, I have the following: ...
0
votes
1answer
52 views

Improving plot execution time

Let me first show what I'm trying to do, and then I will ask the question. I defined three function ...
0
votes
1answer
64 views

How to plot using ListPlot and FindRoot

I am new to Mathematica, now I have an expression Implicit\[Omega]Zero with some parameters $\lambda1,\mu rr,\theta s,b0,a,b1,\omega$ Now I want to find the $\omega(...
0
votes
1answer
52 views

Asymptotic bode plot [closed]

Is it possible to plot an asymptotic bode plot. I am interested in verifying my straight line bode plot approximations done by hand by using mathematica but the bodeplot function generates the curved ...
0
votes
0answers
30 views

plotting simple harmonic oscillator problem [closed]

1.3 A simple harmonic oscillator consists of a mass m and a spring with stiffness constant k. It moves in one dimension x(t) with velocity v(t) where x(t) = A cos(wt + φ) and v(t) = -x(t) = −wA sin(wt ...
0
votes
1answer
42 views

how can I show these legends in a single row? [duplicate]

I have extracted the following code from my legends plots because I need them individually ...
4
votes
1answer
133 views

Why my piecewise function is not working

It says Part 1 of {} does not exist when I try to plot the vector fields of this piecewise function. ...
5
votes
1answer
143 views

Mathematica secretly plotting vector graphics outside the axis range

I have code to plot the zero contour of a function. This function is symmetric about the x=0 axis, but I only want to display it in the first quadrant. Additionally, I currently set up the axes as a ...
1
vote
2answers
76 views

How can I label the plots inside a Graphic grid?

I have some plots as images. I import them in a notebook and arrange them using GraphicGrid as follows Now I want to label each one in the empty space of the plots,...
-3
votes
1answer
72 views

Combining a BubbleChart with a MatrixPlot

Is there a way I can combine a BubbleChart with a MatrixPlot? I already plotted a MatrixPlot ...
2
votes
2answers
348 views

How can I plot x sin^2[1/x] on [Pi/4,Pi]?

And I want this plot to be discrete into 100 equal rectangulars which topmid of them have a line joined together. Something like this, but for the mentioned equation:
1
vote
1answer
36 views

Plotting a 3D plane function and a cylinder in the same figure [closed]

I'm very new to mathematica and I can't figure out this extremely simple thing that I see even in my Multivariable Calculus textbook. Basically I want to take the two plots below, one of a cylinder ...
4
votes
1answer
65 views

Plotting a sequence of functions with cases

How can I plot functions like this $$f_{2^n+j}(x)=\begin{cases}0, x\in [\frac{j}{2^n},\frac{j+1}{2^n}]\\1, x\in x<\frac{j}{2^n} \text{ or } x>\frac{j+1}{2^n}\end{cases}$$? I tried something like ...
0
votes
0answers
49 views

Creating a `ListLinePlot` with gaps at bistable regions [closed]

I'm trying to plot a bistable graph. The dots are calculated as a fine grain scan from NSolve, and then selected by calculating ...
0
votes
0answers
27 views

General solution for plotting small scales. (ListPointPlot3D fails for small numbers) [duplicate]

As pointed out in ListPlot3D not working for very small numbers ListPlot3D and other plotting functions such as ListPointPlot3D ...
1
vote
1answer
35 views

custom BarLegend in Plot

I want to put a custom bar legend beside the plots. ...
2
votes
0answers
55 views

Typing the value of matrix elements in matrix plot [duplicate]

I want to type the value of matrix elements when plotting it on the topside of the bar. Example: $$M=\left(\begin{matrix} 0.77 & 0.04 & 0.01 & 0.0\\ 0.04 & 0.81 & 0.0 & 0.0\\ 0....
0
votes
0answers
59 views

Ising Model 1D /Thermodynamics properties

I want to plot the thermodynamics properties of the Ising model like free energy, entropy, magnetization..etc., when h=0 ( no external field ) and when h= finite values For the energy as function of ...
-3
votes
1answer
96 views

White point in PlotStyle [closed]

I have the following plot: ...
5
votes
1answer
233 views

How to make this Box Plot

I want to mimic the following style (not necessarily the same data) So far, I got the following ...
3
votes
1answer
89 views

PlotLabels is placing a label too far above what it is labeling

I am trying to label the thick black line in the following graph: Using this source code: ...
5
votes
2answers
344 views

Problem while exporting PDF vs PNG

I have the following RegionPlot (which code I don't present since it comes from a long expression): When I right click on it (within the notebook) and try to save ...
0
votes
0answers
28 views

How can I set the plot range to the point where the function becomes zero?

I have a lot of functions (mostly exponential included and more precisely complicated combinations of Gaussian and Slater ones) which decay and become zero in the different points depending on the ...
1
vote
1answer
49 views

2D projection of a 3D plot [duplicate]

how we can obtain a 2D projection of 3D plot. I would to have a plot like this : PS: the plot is a publication paper.
0
votes
0answers
28 views

Should Expanding a function result in changes to its Plot?

(Title needs improving) I'm trying to find the analytical expression for the attenuation of an AC voltage through a passive low-pass filter. The solution involves finding the time-dependent charge (<...
0
votes
1answer
43 views

Plotting two vector fields $\vec V_1=-y\hat i+x \hat j$ and $\vec V_1=2\vec V_1$ on the same plot

I want to compare how two vector fields $\vec V_1=-y\hat i+x \hat j$ and $\vec V_1=2\vec V_1=2(-y\hat i+x \hat j)$ various concentric circles $x^2+y^2=a^2$ with $a^2=1,2,3$ etc. I can plot them ...
5
votes
2answers
305 views

How to make a dynamic plot of a holed circle using "Manipulate"

I would like to make a dynamic circle with the inner radius ($R_a(t)$) moving to $R_b$ like the image below. I had difficulty using Manipulate and leaving the intersections colored as in the image. ...
0
votes
1answer
46 views

Plot Arg[z] in three dimensions

I would like to plot the function Arg[z] for a complex number $z$ in three-dimensions: I would like to obtain it as a surface over the complex plane, as in the &...
0
votes
1answer
50 views

Creating a ListPlot From Imported Excel file with errors

I'm learning mathematica, and right now trying to plot a graph with error bars. What I would like to do is to import 3 lists with x values(1/viscosity), y values(permeance), and error values, and plot ...
2
votes
1answer
55 views

How to organize these plot legends?

I have some plots which are obtained from a long numerical integration. I have named each plot and then have tried to show them in a single plot using Show command. ...
0
votes
1answer
135 views

How to use every number between 2^50 and 2^100 without having to rewrite the code? [closed]

What I have currently written returns a numerical value and stores it in b100. p and q are random integers of size 2^50. I want to use the same code to calculate values where p and q ranges from 2^50 -...
2
votes
1answer
54 views

Change Tick Values in RadialAxisPlot

I am simply trying to change the tick labels on my RadialAxisPlot and the FrameTicks function does not seem to work. I'd simply like to change the axes ticks to reduce the number of ticks and relabel ...
1
vote
3answers
58 views

Drawing circles on top of a vector field drawn using VectorPlot

I am using the command VectorPlot[{{y, -x}}, {x, -4, 4}, {y, -4, 4}] to plot the vector field $\vec{V}=y\hat{i}-x\hat{j}$. On top of this, I need to draw circles of radii $1,2,3...$, etc. I am no ...
-1
votes
2answers
147 views

How to plot this implicit function? [closed]

The command ContourPlot[{RealAbs[x + 1/y] + RealAbs[10/3 - x + y] == 10/3 + y + 1/y}, {x, -5, 5}, {y, -5, 5}, PlotPoints -> 50] , as one sees, draws ...
3
votes
3answers
166 views

Oblique view of an {x,y} and {x,z} plot : is ListPointPlot3D the right strategy?

Seeking advice for how to construct an oblique chart plot of {x,y} and {x,z} value lists in a 3D View where the viewer can trace a line from {x,y,0} to {x,0,0}, and then jump to the associated {x,0,z} ...
-1
votes
1answer
65 views

how to plot multiple plots sharing a common X-axis and Y-axis

With the following Code, I generate various ListLinePlots but I like to create the example ...
0
votes
2answers
61 views

How to show the excluded region in a scatter plot using margin or something else in mathamatica?

Here is my scatter plot I want show that the region lying in the range [Delta]=(0,40) and [Delta]=(140,190) is excluded. How do I show that? The code for my scatter plot is given below ...
0
votes
1answer
114 views

How to plot poincare map as shown in below image for Duffing equation?

I am trying to plot phase diagram and poincare map. But I cannot get the poincare map as shown in the image below Phase Space ...
2
votes
1answer
73 views

Table of surface Parametric draw

I'm trying to reproduce this kind of graph for a spherical cap, with different span ratios. I tried with this: ...
0
votes
1answer
59 views

ListPlot3D problem with ordinary data [duplicate]

I have a simple data set plotting={{3,1,0},{4,1,3/25},{5,1,0},{6,1,0},{7,1,0},{8,1,0},{9,1,43/50},{10,1,1/50},{11,1,0},{12,1,0},{13,1,0},{14,1,0}} As it can be seen,...
2
votes
0answers
62 views

3D plot with LaTeX axis labels

I am trying to create a 3D density plot and use LaTeX to render the axis labels. My code is below. When I comment out the AxesLabel command the code runs fine and, in particular, MaTeX renders the ...

1
2 3 4 5
266