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

How can I specify the output mesh resolution for ListPlot3D?

I am using a grayscale image to generate a 3D topology, with the help of ListPlot3D. However, the output mesh resolution is far too high for my purposes. I need to ...
1
vote
1answer
66 views

Why am I getting blank plots but no error messages?

I am trying to create two density plots of values but one plot has blank spots and the other is entirely blank. I do not get any errors when I run the code so I am not sure why the plots are turning ...
2
votes
1answer
58 views

Create a CountorPlot or DensityPlot using ColorData as input

I have created a function which takes two arguments and outputs an RGBColor, and I was hoping that I could use this to create the equivalent of a ...
2
votes
1answer
60 views

How can I make the size of the Ticks consistent with the size of the figure?

I wrote this code to help me manipulate the size of the figure along x and y (controlled byXZ...
3
votes
1answer
38 views

Plotting just one branch of hyperbolas

I have a family of hyperbolas that I want to plot. Right now, I have this code ...
3
votes
1answer
61 views

How can I plot this one-dimensional Self Organizing (Kohonen) Map?

Mathematica used to have a package called NeuralNetworks that is not currently working. With that package, you could create a Kohonen or Self Organizing Map (https://en.wikipedia.org/wiki/Self-...
2
votes
0answers
27 views

Reformatting $y$-axis labels from decimal to exponential form [closed]

I have this graphic How can I reformat 0.001 as 10^-3? just like the 10^-4?
0
votes
1answer
32 views

“Constraints should be equalities, inequalities, or domain \ specifications involving the variables”, leading to unexpected results

While trying to maximize the function fun[x_, a_, b_], over parameters $a$ and $b$, and plotting the resulting maxima with respect to $x$, I encountered the error ...
3
votes
0answers
96 views

How *does* Mathematica generate ticks and tick values?

This question has sort of been asked before in various guises (e.g. here and here), but the answers given there do not answer the question I'm posing. Before I pose my question, a definition. Let use ...
3
votes
2answers
85 views

How can I use ImageCrop on a results from Grid?

I have this figure produced using Plot and Grid ...
2
votes
2answers
187 views

Plotting a particles's trajectory [closed]

I need a little help in plotting a trajectory. A particle moves along a trajectory such that its radius vector is given by: $\qquad r[t] = A(e^{\alpha t} + \widehat{e_1} + e^{-\alpha t} + \widehat{e_2}...
0
votes
1answer
44 views
0
votes
0answers
16 views

Plotting components of a multivariate ItoProcess object vs. each other

About a week ago I asked for some help in generating bivariate Ito processes where the components can be correlated (See thread Simulating a bivariate Ito process).b.gates.you.know.what kindly ...
0
votes
0answers
23 views

Custom Contourlabel to show linear values on log plot

How can we use ContourLabels to show linear values of a function on the contour plot while the plot itself is in log scale?
2
votes
1answer
64 views

Plotting Stability of damped mathieu equation

I am trying to create the stability diagram of the damped Mathieu equation using Mathematica.The Mathieu equation is $$D(y)+(a-2q \cos(2t))y=0$$ where D(y) is the ...
0
votes
1answer
62 views

How plot this list in ytg[y,t] axes

I have a list of complex numbers in the form of g[y,t] such that {y,0,1, .1},{t, 0,1, .1}. How can I plot this list in ytg[y,t] axes ...
2
votes
2answers
42 views

Plotting a function by randomly choosing the values of two parameters

Given the function: fun[a_, b_, x_] = Sqrt[1 + x^2 - 2 x Cos[a]] + Sqrt[2 - 2 Cos[b]] + Sqrt[ 1 + x^2 + 2 x Cos[a + b]]; I want to Plot it with respect to $...
1
vote
0answers
51 views

ContourPlot - how to show linear values on log plot and how to expand the PlotRange for linear plot

I have been struggling with this problem for long and I finally decided to post it. How do you change the range of contour plot or decide what contours to show? Also when your contour is in the log ...
2
votes
1answer
40 views

Partially log x-axis?

Sometimes using logarithmic scale for x-axis offers greater detail close to x=0 at the expense of loosing some of the details on the rest of your plot. In the following working example one faces a ...
3
votes
1answer
60 views

ListDensityPlot using a customized colorfunction

I would like to plot a figure using colorfunction in Mathematica. I opened the "Color Schemes" from the Palettes menu, but did not find a proper colorfunction. Questions: Please see the ...
8
votes
1answer
370 views

Customize ColorData function

I am trying to customize the color data ColorData["AvocadoColors"] I want to make color data function of the gradient starting from the green to the white ...
0
votes
0answers
38 views

How to deal with unknown variables in NSolve?

I am trying to solve these equations by using NSolve and want to plot $p1^{2}+p2^{2}$ v/s P0. But there is some problem, it is showing running... but not showing any error. I don't know where I am ...
0
votes
1answer
72 views

Why doesn't Manipulate work? [duplicate]

...
1
vote
1answer
47 views

How to do ListDensityPlot using this kind of colorfunction?

I would like to plot a figure using this kind of colorfunction in Mathematica. I opened the "Color Schemes" from the Palettes menu, but did not find a proper colorfunction.
1
vote
1answer
72 views
1
vote
1answer
35 views

Get modulus and plot complex function

I have the following function: ...
3
votes
1answer
34 views

Adding arrow head at the end of ParametricPlot3D [duplicate]

I have been trying to add an arrow head at the end (o even at some point) of a very simple parametric. ParametricPlot3D[{-5 Sin[3 t], 5 Cos[3 t], t}, {t, 0, 15}] ...
3
votes
1answer
53 views

Consistent fonts in a plot

I'm trying to use consistently the fonts in a plot, but even after checking this post, the "a" on the axes is different from that near the point. This is my code: ...
1
vote
0answers
40 views

How do you define the domain and range of the variables for a plot?

How do I define the domain to be only reals and the range to be only complexes? Everytime I plot using ComplexPlot[], I get a C->C function so there are basically too many variables to plot and I ...
1
vote
0answers
40 views

Shaking axes when animating

I have the code below to animate a point. During the animation, the axes are shaking. I have added PlotRange, and PlotRangePadding -> None. Still shaking. If I export the animation to a gif, the ...
5
votes
3answers
1k views

graph of the Cantor set in Mathematica

The interval $[0,1]$ of the real line, which we call $C_0$, and divide it into three equal subintervals. In this way we obtain the following intervals $[0,1/3]$,$[1/3,2/3]$,$[2/3,1]$, and we get rid ...
0
votes
1answer
62 views

How do we list all points in the Middle $3/7$-th Cantor Set?

Suppose we were to list all points in the $3/7$th Middle Cantor set where we first remove $3/7$th of $[0,1]$: $$[0,1/7]\cup[2/7,3/7]\cup[4/7,5/7]\cup[6/7,1]$$ then $3/7$th of remaining intervals, $3/7$...
0
votes
2answers
887 views

Create smooth colour map from given array for ListPlot3D

I am trying to find the Mathematica equivalent for Python Matplotlib's cmap option, to be used with ListPlot3D[]. Here is the ...
3
votes
2answers
258 views

Code that produces plot in V5 doesn't work in later versions

I have problem in plotting Integral function. I can compute/plot the graph of this integration below in Mathematica 5.0, but it is not possible to plot it in higher Mathematica versions. My code is: <...
0
votes
2answers
48 views

How to get a list of exponentially distributed points sampled in a range

I want to get 256 points exponentially sampled in a range, and then get its histogram. If I plot PDF, I get the following: ...
3
votes
1answer
98 views

Using DateListPlot without connecting dots [closed]

I have a list of values like this: When I plot this data using DateListPlot[data] I get a plot connecting the individual points such as: My question are: How can ...
3
votes
1answer
46 views

How to represent a data list by arrows?

I have a code that builds a plot with 7 functions and mark 4 points. Each level of list data describes a function (see below). The curves are created from the "data" input from ...
0
votes
0answers
87 views

Plotting a complex integral function [duplicate]

Can anybody help me to plot the T1 and T2, please? The problem is that the integral part becomes so huge or indeterminate at ...
3
votes
3answers
68 views

Plotting a function with the domain restricted. Basic question

I'm trying to Plot a simple function on a restricted domain. I tried ListLinePlot[Table[x^2, {x, x>-3, x<3, 1}]]. This doesn't work. I'm not sure how to take ...
2
votes
1answer
82 views

Dynamic Update for 2D Random Walk

I have code for a random walk ...
2
votes
1answer
36 views

Drawing axis only in $\Bbb R_{++}$, but tags in $\Bbb R$

I'm sketching a diagram in $\Bbb R_{++}$ and I want to indicate the coordinates of some points. I want to place labels below the $x$ axis and to the left of the $y$ axis. But if I set ...
0
votes
1answer
21 views

Difficulty refactoring a graphics point from displaying a tooltip to a label when using show to combine point with a plot

I have a Plot[...] of a system of linear equations and a function graphicsPoint[...] that generates a graphics point to show ...
11
votes
4answers
267 views

Change Opacity along a ListLinePlot

I'm trying to change the opacity of a line in a ListLinePlot for increasing x-value. E.g. the line should have opacity 1 at beginning and shade than down to opacity along the line. I want to take the ...
2
votes
1answer
28 views

Plotting eigenfunctions as functions of parameters in the hamiltonian

I'm finding eigenfunctions using NDEigensystem of various hamiltonians. For example, the hamiltonian with Shcrödinger's equation: $$ H u(x)=-\hbar^2 u''(x) + A x^2 u(x). $$ I would like to be able to ...
9
votes
1answer
133 views

Peculiar behaviour in the implementation of “Filling”

I was working with mathematica and I need to use "Filling", however I notice that it doesn't work when you have "small" numbers, for example if I make the following: ...
0
votes
1answer
51 views

How can I plot function density plot Hyper-geometric /Bessel function with complex arguments?

I am interested in the plot of a function in terms of hypergeometric and Bessel function with complex arguments, Here, it is my code, but the result is incorrect, the solution must be defined every ...
2
votes
0answers
83 views

How do I create a piecewise function using Do[] or While[]?

The following non-linear circuit is an uncontrolled three-phase full-wave 6-pulse rectifier. The inputs are $v_{an}(t) = V_m \sin (\omega t)$, $v_{bn}(t) = V_m \sin (\omega t-120°)$ and $v_{cn}(t) = ...
3
votes
2answers
104 views

Plotting a Set of Three Points with Histogram3D

I would like to know whether I can use Histogram3D to plot a set of points with three given values. I want to plot the values {0, 0, 0.01}, {0, 1, 0.1}, {1, 0, 0.02}...
-2
votes
1answer
31 views

I want to give different colors to functions in 3D Plotting, [closed]

I want to give different colors to functions in a 3D plot. For example, in the following statement, what must be included for doing so? ...
1
vote
1answer
34 views

Strange behaviors with ListContourPlot and ContourPlot: rotation relationship

Here is an example in ListContourPlot ...