Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
5 views

ParametricPlot two Piecewise functions

I am trying to ParametricPlot two Piecewise functions. Here are my two Piecewise functions: ...
0
votes
0answers
10 views

How can I set an axes scale on x in terms of Pi?

If I plot a function just like that Plot[Sin(x), {x, 0, 3Pi}] I'll Get a plot whit the x betwenn 0 and 10, I'll like to know how can I could modufy the x axes ...
0
votes
1answer
12 views

How to use vector plot and gradient vectors?

How do I plot a sampling of gradient vectors for fby using the vectorplot command? I’m confused how to use both these commands.
1
vote
1answer
17 views

Problem with building graphic using ListPlot

I want to build the graphic using ListPlot but it doesn't work. I get list in next form: ...
0
votes
1answer
20 views

Plotting points with different marker and different plotlegend

Currently i'm stuck at problem, where i have a sets of points, and I wish to plot these point with different plot markers, and also with different plot legend. The code is the following: ...
2
votes
1answer
21 views

Invert color in MatrixPlot

How can I invert the grayscale colors when using MatrixPlot? My data is between 0 and 1 and the color scheme when using GrayLevel...
0
votes
1answer
25 views

problem with integration and plot

I have a problem with the following function, I want to integrate my function on r for r between 0 and infinity and then plot it, but I can't compute it, I get the following error... Integrate::...
1
vote
2answers
50 views

Change the colors of vectors?

I'm using ListVectorPlot to draw vector fields. Is it possible to change the colors and also the types of the vectors?
0
votes
0answers
49 views

Polarization map

I want to generate the polarization map of a vector vortex beam from the Stokes parameters (S1,S2,S3). Any suggestion or help? Here: Generate an array of ParametricPlots there is something, but is ...
1
vote
1answer
80 views

Graph a cylinder moving in 3D

I need to generate a graph (series of stills) or animation of a cylinder (or other shape) moving in 3D. The object moves in projectile motion and rotates about two different axes. Now, I have the ...
0
votes
1answer
52 views

Plot $ g(r) = \int_0^\pi J_0(w\ r)\ \mathrm dw $

I want to plot $g(r)$ as a function of $r$ but $g(r)$ at each value of $r$ is an integral of the Bessel function over the the limits of $w$.
2
votes
2answers
73 views

Plotting a function $\psi(\rho,\theta,\phi)$ in spherical coordinates

If I want to plot the function $\qquad \psi(\rho,\theta,\phi)=\frac{1}{8}\left(\frac{1}{\pi}\right)^{1/2}\rho e^{-\rho/2}sin(\theta)e^{-i\phi}$, for which I wrote the code ...
1
vote
2answers
31 views

Reduce Plot3D evaluation time?

I have a large function func[a,b] and I need its Plot3D. Since the command ...
0
votes
0answers
17 views
0
votes
1answer
32 views

Model fitting for concave curve: test if asymptote or convergence exist

I am asking a double check if conceptually I set up proper model and proceeding in good direction to drive conclusions. I have a distribution that looks like this: I want to test if for increasing x ...
2
votes
3answers
44 views

How to exclude a range of values in an interval

i'm trying to draw an irrotational vortex with this function: ListVectorPlot[Table[{-y/(x^2 + y^2), x/(x^2 + y^2)}, {x, -3, 3, 3}, {y, -3, 3, 3}]] But as you can ...
1
vote
2answers
54 views

Plotting dynamic variable generated by checking Region intersections

I have been trying to plot a variable which is nested inside a manipulate. Here is a simplified version of the program. ...
2
votes
1answer
43 views

output response and contradictory control models

So I'm trying to learn some control theory for a little project I'm working on and decided I'd try the examples of pendulum and cart one can find all over the internets, and I'm following this post ...
3
votes
3answers
270 views

How to plot two sets of data with a Filling such that the fillings' intersection doesn't change color?

Consider two sets of data, data1 and data2 (they are given below). If I try to plot them, ...
2
votes
1answer
34 views

Combining Multiple Contour Plots with Different X, Y, and Z Ranges

I am trying to calculate the differences in natural frequencies between two different dynamic models, and I would like to plot these error contours in terms of ues (...
-1
votes
1answer
50 views

How to draw a vortex with this vectors?

i'm learning mathematica. Do you know how to draw vortex with vector like these? Moreover I would like a picture like this: Without axes or other indication Thanks
0
votes
2answers
50 views

Solving for upper bound of integral with known value

I'm trying to calculate the upper bound of an integral. My current code is f[r_?NumericQ] = (1/(Pi*a^3))*4*Pi*(r^2)*E^(-r/a); Plot[f[r], {r, 0, 1}] When I ...
0
votes
2answers
54 views

Scaling a LogPlot to better show its minimum

I've got a function. I want to scale the X-axis in a weird way. I want value of h = 10^-4 to appear in the middle of X-axis. In my plot, shown below, we can't see ...
1
vote
2answers
45 views

ListLinePlot two datasets with two different colors

Is there a way to use single ListLinePlot? I don't like my solution. Here is a minimal example. ...
2
votes
1answer
88 views

Tangent point in Polar Coordinates

I don't know which command to determine the tangent lines that are parallel to the line $x=0$ (i.e. the y-axis) in Polar Coordinates. Can you help me please to give me some suggestions? I attach some ...
-3
votes
1answer
50 views

Plot won't display fully [on hold]

This is my code, but it won't display the entire plot. It used to display fully, so I have no idea what happened. Any ideas? ...
2
votes
1answer
75 views

SciDraw issues with LogTicks to make a Log-Log plot

I have the following two functions ...
-4
votes
1answer
47 views

What are the commands to obtain the following table and figure? [on hold]

I've used both Mathematica and Latex and can't seem to find the correct commands. I've used Plot, Tabular.
1
vote
1answer
35 views

Plotting RegionPlot3D within a certain radius

I have a RegionPlot3D: ...
0
votes
2answers
54 views

Finding a numerical solution and plotting it over a wide range

My problem is that I am trying to find a Numerical solution to a function of the form f(x,c)== K for x for some given values of c, K, and plot this function over a wide range of values of c. My ...
0
votes
2answers
38 views

Plotting a paraboloid

I want to plot a paraboloid centered at the origin. I tried ...
1
vote
1answer
31 views

Mathematica exporting issues with Row[]

I've had this issue for quite awhile - and it's quite frustrating. When publishing papers, we try to get all of our figures in .pdf for obvious reasons. Usually, Mathematica exports to .pdf just fine, ...
2
votes
1answer
22 views

How can I suppress the wrapping of many plot legends in two columns?

Say I have a plot like this: ListPlot[Partition[Range@12, 1], PlotLegends -> Automatic] The PlotLegends will wrap into 2 ...
2
votes
2answers
64 views

BodePlot with magnitude in db or log scale

I have to plot a BodePlot with magnitude in db or log, but i could not find the option for setting the magnitude scale. ...
0
votes
1answer
26 views

Getting an empty LogLogPlot

Consider s[t_] := Exp[-t^2] Sin[5 t] sf[w_, n_] = FourierTransform[Exp[-t^2] Sin[n t], t, w]; Then ...
0
votes
2answers
40 views

Customized function for manipulation of data and plotting

I have a number of datasets (csv) which require the same manipulation and plotting, but I don't want to repeatedly write the same set of code again and again. What is the best way to do this? Piece ...
4
votes
2answers
157 views

Periodic table with color code

Is it possible to do this table (from here) in Mathematica? In this table, the color code indicates the element’s dipolar character $(~ m\mu_m^2)$ in atomic units.
1
vote
2answers
38 views

How to create a manipulate window that plots two functions?

Original Function: f[x_] := E^-2 x Cos[Pi x] Manipulated Function: ...
0
votes
0answers
14 views

Using RegionPlot with NIntegrate causes symbolic evaluation when integrating

I am trying to plot the regions when a certain integral is positive. Because the function has many parameters I am passing the values through two sets of rules, one containing the pair of values I ...
1
vote
1answer
32 views

Unable to graph Natural Logarithmic function [closed]

I am attempting to graph a logarithmic function using the following code; Plot[{Log[1/(2-e^(-2 x))^.5]},{x,-6,6}] however, I am getting only axis with no ...
0
votes
1answer
44 views

UnitStep producing unclean boundary

I am trying to do the SliceDensityPlot3D which uses UnitStep function ...
0
votes
0answers
7 views

Problem with color using ListDensityPlot [duplicate]

I have a small color problem ListDensityPlot. I made the following code to plot my data. When I compare with the original one, I have a color problem... I lost information in the middle : I get a big ...
3
votes
2answers
88 views
+50

Getting additional control over MaxRecursion/PlotPoints

I'm occasionally in a position where I need to compute a RegionPlot with some small area of the plot being computationally much more expensive then the rest of the ...
2
votes
1answer
40 views

Bad interaction between options Joined and PlotRange when using ListLogLinearPlot

I am trying to plot data using the ListLogLinearPlot. Here is my initial code: ...
1
vote
1answer
36 views

ListLogLogPlot origin issues and numerical instability

I have the following long functions f1and f2 dependent on parameters ω and ...
-1
votes
0answers
33 views

place the elliptical earth orbit into the same plot of a circle [duplicate]

anyone can help me to display simulations like the following with the formula: ...
1
vote
1answer
47 views

Strange behaviour in derivative of Floor function

The function Floor[x] is piecewise constant, hence its derivatives should be piecewise zero. This is far from true in Mathematica In[497]:= $Version Out[497]= "10.1.0 for Microsoft Windows (64-...
1
vote
1answer
36 views

How to rotate TickLabels in DateListPlot

I tried to rotate my TickLabels with another contribution from this website. I load the package CustomTicks.m ...
1
vote
0answers
43 views

Saving information on how plot was produced

I have some function that takes some parameters and then produces a plot which I then save somewhere on my computer. I don't want to keep the lines of input and output which produce and show the plot ...
0
votes
2answers
37 views

Problem in dealing with Sign function

Let my function be $f(x)=e^{|x|}$. I wish to find $f''(x)$, this can be done as- $f'(x)=$sgn$(x)e^{|x|}$ $f''(x)=$sgn$(x)^2e^{|x|} =e^{|x|}$ In Mathematica, I am trying to plot $f''(x)$, it ...