# Questions tagged [plotting]

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

11,986 questions
Filter by
Sorted by
Tagged with
148 views

### Why this code is considerably slower in version 9?

I have a Mathematica code for computing and plotting the density which corresponds to a given potential. The following code was written few years ago using version 5.2 of the Mathematica. Recently, I ...
42 views

### Use ContourPlot3D with an equality stored in a variable?

Simply put, I'm trying to use ContourPlot3D with an equation stored in a variable. For example: ...
59 views

### How can I get a more clear result for plot of this function?

I use this command ...
35 views

### Axis not appearing in the correct location ListPointPlot3D

So when you make a 3D plot in mathematica, Plot3D, ListPlot3D, ListPointPlot3D, etc. the side of the box the axis show up on usually happens automatically. That is, the orient themselves so they're ...
82 views

### Colors in Manipulate[] plot change during execution

UPDATE WITH WORKING EXAMPLE Following what @Kuba said, I've attempted to find a MWE that shows the problem without too much of the other stuff, and here's what I've done. Here's a couple of new GIFs ...
69 views

### Plotting line segments in complex plane

Recent versions of Mathematica have introduced various functions for plotting in terms of complex numbers and complex functions, including ComplexPlot, ...
72 views

28 views

### When I combine Labeled with Rasterize the Labels get scaled wrong

I'm trying to create a high quality image for a publication, I am combining two plots, with a legend, and labeled using the Labeled command, I then use Rasterize to ...
23 views

### Why does ComplexListPlot labeling function require an Evaluate?

Start with the list of the cube-roots of unity: cubeRoots = ComplexExpand[Exp[(2 \[Pi] Range[0, 2] I)/3]] I want to use ...
87 views

### Plot for every n to compare the result

if I want to plot this cod for every n how should I try it? if I use n as example equal to 4 I want a plot with n=1 n=2 n=3 n=4 Any idea? ...
70 views

### How to solve the following equation numerically?

In the following code, if the matrix "n = (-I*(m1)) + (m2)" in the differential equation contains only the matrix "m1", I will get the answer, but if the matrix "n" is ...
38 views

### Seamless ContourPlot for a conditional function

When I try to create a ContourPlot of a continuous conditional function, Mathematica leaves a "seam" in between the two regions demarcated by the conditional. How do I fill this seam? ...
29 views

### BarChart does not display asymmetric error bars correctly

BarChart seems to read the uncertainty in elements the other way around. The object: Around[5, {1, 10}] is evaluated as . However, when you use it in a BarChart, the uncertainties are swapped: ...
144 views

### How can I precisely control the position of the BarLegend in the DensityPlot?

I generated the following plot and I would like to move the BarLegend to a specific position, how can I do that? I also faced another problem where in the ...
137 views

### MapThread over a list of sublists

I am trying to plot a list of two sublists, each of length 5 to produce two curves: aaa = {{0, 1, 2, 3, 4}, {5, 6, 7, 8, 9}}; imax = 5; I tried two ways to no ...
35 views

### Changing Units of Imported Data Columns/ Multiplying/Dividing Imported Data Axes

I have some imported data with 5 columns and I am plotting a 2D plot with columns 1 and 2. However, I need the data in a different unit so I want to multiply the y axis data by a constant "0....
56 views

### How do I change the LabelStyle for all graphics producing functions programmatically (only for the current session)

I want to change the default label style (or every Font appearing in graphics if easier) programmatically for the current session. Specifically I want to change the color to black (from the default ...
164 views

### Opacity or related issue with DensityPlot3D

I'm trying to make use of the function DensityPlot3D with the following specific example ...
55 views

### ListContourPlot table problems

I have a table of the form xrange={0.1,1,0.05} yrange={3000,15000,100} tab1=Table[{x,y,z[x][y]},{x,xrange},{y,yrange}] where z[x][y] comes from previous ...
101 views

### Change plot style as function of parameter in ParametricPlot

The Manipulate below produces a path traversing the upper unit semicircle, going from {1,0} at time 0 to ...
89 views

### How I can plot the below map?

I have tried to plot the following map: $\qquad \begin{cases} y_{n+1}=r y_n^{x_{n+1}-x_{n+2}}\\ y_1=x_1-x_2 \quad \end{cases}$ using the code shown below. The error I have got is that x - x ...
82 views

### Possible way to plot the solution density of diophantine equations

Well, I'm trying to investigate the density of solutions to Diophantine equations. What is a general method to describe that density? I've two functions: \varphi\left(\text{a},\text{b},\text{c}\...
92 views

### Two vertical axes in the same plot

Frequently for convenient experimental data analysis it is necessary to present results with two vertical axes in the same plot with different scale and distance between ticks. I've tried to find ...
43 views

### Recursively plotting specific elements in a list of lists

I am trying to build band structures and am looking to generate a general code that will work regardless of my list size. Here is what I am trying to do: say I have a list like ...
46 views

### How many colors with their name present in the image?

I am looking for a way to find the number and name of certain colors present in the image so that I can use them to count for each pixel. I am doing it but actually some other colors or can say mixed ...
32 views

### Axis getting swapped while plotting

I am havings data set with 6 coloums and I am trying to plot two coloumns out of 6, but my axis are getting swapped. This is what I am trying ...
103 views

### How to put a title to PlotLegends?

I want to put a title to the plotlegends I am using. I get a solution here which says to use ...
35 views

### How do I get ArrayMesh to reverse the order of data in a 3D array?

The following array has non-zero entries in the cells where all three indices are equal: foo = SparseArray[{i_, i_, i_} -> 1, {4, 4, 4}] When I try to render ...
64 views

### Plotting data from a list of rules, infer axis titles from the rules with units

I have data, with units, organized as a list of rules; this is so I can slice the data in different ways based on the variables represented. I'm trying to find the most direct way to plot this and get ...
115 views

### How can i solve and plot this non linear ODEs usin NDSOLVE?

I am trying to solve the following non-linear ODEs ...
54 views

### Plot Expression returned from Function

Suppose we have a function that does something with its parameters, and then returns an expression containing an equality. I want to then use that expression in (Contour)Plot to visualize it. The ...
74 views

### How to make a marginal distribution plot using DensityPlot?

How would you make a marginal distribution plot using DensityPlot? Adapting Sjoerd's answer from this question using Epilog, I can plot a slice at a given ...
87 views

### How do I plot an implicit function? [closed]

I want to plot the implicitly defined function $u(x,\,t)=(x - u(x,\,t)\, t)^2$. How can I do that?
64 views

...
49 views

### Plot with descriptive statistics in each point of the serie

I have a list similar to the next, but with 361 arrays lists instead of 3: list={{1,2,1,2,3,5},{1,2,3,4,3,3},{3,4,2,5,4,6}} And I would like to make a plot ...
250 views

### How to plot a function for various values of 2 constants

I have a function like this: ...
68 views

### Why is the stationary solution showing different behaviour than that of plotting maximum and minimum separately?

I am trying to plot the stationary solution of the function given below w.r.t. a parameter c as follows ...
42 views

### Blank result from ListContourPlot[]

I was trying to make a ListContourPlot of some data. I have triplets of data of the form {x, y, f[x, y]}. A part of this data is ...
78 views

### Plotting Vector Fields for the Basis Vectors of Different Coordinate Systems

In short, I am hoping to plot out vector fields for the basis vectors of my elliptic cylindrical coordinate system. For more information on the coordinate system I mentioned, Wolfram|Alpha has a site ...
164 views

### Put Inset beyond plot range

I want to put an inset (a) further downward (roughly the same height as the BarLegend). However, the following code doesn't seem to allow that. Can one do it ...
50 views

### How to position x AxesLabel below the axis with custom ticks?

Consider a simple plot with textual x ticks. ...
35 views

### Problem exporting a plot with an inset plot (weird resizing)

I'm having issues in saving out a plot with another plot inset within it. Here is a basic example. theInsetPlot = Plot[Sin[x], {x, 0, 6 Pi}]; ...
202 views

### Evaluate and Plot x=x+1

I have a function of the form x=x+dx, whereas x(z) and dx(x,z) both depend on a increasing integer. Now I would like to evaluate this function after n time steps. In addition to that I'd like to plot ...
2k views

### How do you export the result of a RevolutionPlot3D to STL for printing?

How do you export the result of a RevolutionPlot3D to STL (STereoLithography) file format for printing? I am a tyro when it comes to 3D rendering and printing.
43 views

### Problem with scaling in ParametricPlot3D

I have an integral given by intS[zs,c] and I want to plot the expression functionS (which contains ...
62 views

### Let PlotLabel use data set names in a list of plots

In the code below, how to make PlotLabel automatically show the name of the data sets (i.e., aa, bb, cc)? ...
42 views

### How to use two separate colours for two lines in a single 'Plot' within the 'With' command?

'''With[{k = {1, 10}}, Plot[k*x^2, {x, 0, 1}]]''' I want to use two separate colours for two k values. How to do that? Thanks in advance.