# Questions tagged [plotting]

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

11,690 questions
Filter by
Sorted by
Tagged with
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 ...
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 ...
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 ...
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...
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 ...
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-...
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?
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 ...
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 ...
85 views

### How can I use ImageCrop on a results from Grid?

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

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 ...
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 ...
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 ...
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 ...
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 ...
72 views

...
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.
72 views

### Manipulation of a plot computed in several steps

the following test works for fixed parameter si: ...
35 views

### Get modulus and plot complex function

I have the following function: ...
34 views

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}] ...
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: ...
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 ...
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 ...
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 ...
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$...
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 ...
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: <...
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: ...
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 ...
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 ...
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 ...
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 ...
82 views

### Dynamic Update for 2D Random Walk

I have code for a random walk ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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) = ...
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}...
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? ...