# Tagged Questions

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

103 views

How can I plot this curve in Mathematica: \begin{align} x(t)&=\begin {cases} 2 (t-n+1) \: , \: t\in [n-1,n-1/2] \\ 2-2 (t-n+1) \: , \: t\in [n-1/2, n] \end {cases}\\ y(t)&=\begin {cases} 2 (\... 0answers 44 views ### Anyway to add Epilog graphics outside of plot area without extending the axes? [duplicate] I'd like to be able to add a line below the x-axis of my plot but not have the y-axis extending down to cover this region (as it defaults to). For example: ... 2answers 119 views ### Align ColorBar (axislabel) to be parallel to the y-axis for any view-angle The following code produces the 3D plot below (which is almost what I want). ... 1answer 141 views ### How to draw normal vector in Mathematica? [duplicate] Question If I have plane equationx+y+z=0$, then normal vector is$\{1,1,1\}$. Why is it not normal visually? How can I draw it properly? Code ... 1answer 156 views ### How can I visualize a frequency as square wave? I'm trying to get a typical square wave of a 16MHz and 50Hz signal withing a y-range of 0 to 1. My code is: ... 1answer 90 views ### integrate over the values in the first quadrant [closed] With these formulas I get two slopes. e describes the energy. How can I integrate over the first quadrant for the values of e? ... 2answers 53 views ### substitute tangents plane in a function [duplicate] Let f:= x^5+x^2*y*z^2+z^3*x*y; and let S= {{2,1,0},{7,7,1},{5,1,0},{3,0,1}} be a set of points . I need to calculate the tangent ... 3answers 155 views ### Plot 2 plots together with different y-axis: in version 10 will not plot entire range I am trying to plot 2 plots together with a common x-axis and different y-axis. I have tried implementing the modules shown in 1 Plot, 2 Scale/Axis however I do not see the full range of data in the ... 1answer 89 views ### Is it possible to project a 3D contour plot onto two dimensional space? [duplicate] I like to draw project of ContourPlot3D into "p-q" plane, but is it possible to do it with Mathematica? Here is my ContourPlot3D: ... 1answer 76 views ### Polar plots ticks in degrees -180 to 180 [duplicate] I am trying to create a polar plot with the ticks in degrees, but instead of 0 to 360, I want -180 to 180. PolarTicks -> {"Degrees", Automatic} gives 0 - 360, ... 1answer 85 views ### How to animate a graph generated by ListPlot command point by point? I was wondering if it is possible to animate the following graph. The command used to generate the graph is the following: ... 1answer 113 views ### Import graphml file in mathematica I am trying import a graphml file I created with NodeXL in mathematica in order to create a network. However when i try to import it I get the error message: "Cannot import data as GraphML format". ... 0answers 38 views ### Option ItemAspectRatio in GraphicsGrid has weird behaviour in MMA 10.3 Has anybody noticed that the Option ItemAspectRatio in GraphicsGrid is no longer valid? It ... 1answer 136 views ### How to put the result of NDSolve in a function? I have solved an ODE with NDSolve, and put the result in S: S = NDSolve[{y'[x]==(y[x]^4+y[x]+1)^(1/2),y[0]==0}, y, {x, 0, 100}] But i don't want to plot y[x] ... 1answer 234 views ### How to plot heatmap function over the unit circle I have a function$Z(r, \theta)$that I would like to plot over the unit disk. I could of course plot it as$Z(\sqrt{x^2+y^2}, \arctan(y/x)), but the best I can do with this is a square plot. I would ... 1answer 113 views ### inset legend from top right corner / find size of swatchlegend bounding box The question is the following. Using Inset, we can insert a legend in a Plot (in a Graphic, in general). E.g. ... 1answer 165 views ### Alignment of TreePlot I want to construct a binomial tree using TreePlot but have troubles with the alignment. The code ... 1answer 53 views ### Error bars missing from list plot I am trying to make a ListPlot with errorbars by using Filling. However, is some cases, some of the errorbars are missing. Why? ... 3answers 127 views ### How to make plot and a graphics have vertical axes align in grid [duplicate] How can I modify the following code so that the vertical axes in both the graphics and plot align up? I think the aspect ratio for the plot is good. It appears that changing the ImageSize of the plot ... 2answers 225 views ### Parametric plot on multi-dimensional domain I wish to plot all the points in 3 space that satisfy the following conditions. $$(x,y,z) = (a^2+b^2, ac+bd, c^2+d^2)$$ fora,b,c,d$in some range. I have tried the following. ... 0answers 122 views ### How can I export 3D plots as vector graphics? [duplicate] Consider the following simple example code: plot3D = ListPlot3D[{{0, 0, 1}, {1, 0, 0}, {0, 1, 0}}, Mesh -> All]; Export["plot3D.pdf", plot3D] As clearly seen, ... 1answer 57 views ### How can I get Tooltip to use a string variable as its parameter? I have an x/y data set casualties with Union and Confederate Civil War casualties. I have a third variable, battles, listing the names of all of the battles. Currently ... 1answer 90 views ### Fourier Series plot I'm trying to plot partial sum of Fourier series. I've finally managed to make it work but there are several things I don't understand ... 2answers 110 views ### A 2D-plot with second X-axis [duplicate] I plotted a simple function with: ... 0answers 48 views ### ListVectorPlot have to be run twice to get the plot [duplicate] I'm running the following code on v10 ... 1answer 216 views ### My introduction to Compile I am reading Fractals from the Newton-Raphson method from Peter Young's page [http://young.physics.ucsc.edu/115/]{http://young.physics.ucsc.edu/115/}. I've tried: ... 1answer 182 views ### How do I plot this 3-D, double integral? I have the following function: I need to plot a 3-D with coordinates f (p, q), p and q. I mean, I enter values for p and q, so that the integral of f (p, q) must be a number. This number must be ... 0answers 51 views ### How to draw a distribution plot (dotplot?) like this in mathematica? [duplicate] I believe I've seen this answered already here in Stack Exchange but I could not find it again, so here I am asking, hoping that someone knows this other post I am referring to. Here are examples of ... 3answers 256 views ### Animate$2D$butterfly curve in$3D\$

There is a butterfly curve $$r(\theta)=e^{\sin(\theta)}-2.4\cos(4\theta)+\sin \bigg( \frac{\theta}{12} \bigg)^5$$ ...
60 views

### PlotRange problem [closed]

When I plot a list (20 points) using ListPlot, the plot always begins at 1 and not 30 as my PlotRange indicates. ...
81 views

### I want to graph all of ArcSin without restriction, how would I format that? [closed]

I am new to this and I've plotted this:Plot[3 ArcSin[x + 4] - 16, but I don't know what/how to specify the range?
103 views

### 2D List Plot in a 3D box: What am I doing wrong?

Let me just show the result first, and you'll see the error easily: Now, this is just a 2D image sent into a 3D box, so you'd think they looked alike. But the 2D image behaves well: The code was ...
161 views

### Calculate overlap coefficient between two functions

I have two functions and I want to calculate the overlap coefficients between those two functions. A similar question has been answered for Python and R, however, I couldn't find an answer for ...
99 views

### Add single contour line to relief map [duplicate]

I have generated a relief map according to a method shown in Mathematica documentation, viz: ...
66 views

### join two ListVectorPlots

I have two ListVectorPlots, the are given below ...
119 views

...
86 views

### Removing a white polygon from a filled parametric plot [closed]

I have the following function ...
76 views

### Control the color of contours [closed]

I use ContourPlot frequently and sometimes the contours are not easily discerned because most values are small with a few very big ones. When I use ...
63 views

### How do you add one chart to the right of another? [closed]

I have two charts, and I would like to insert the data from one at the end of the other. However, the one chart has multiple ListLinePlots, and when I use Show to try and place the two together, the ...
95 views

### Is there a built-in function implementing the minimum and maximum gradient?

Suppose I have a set of data. Mathematica has fitting functions to determine the line and corresponding equation to the best fit given any arbitrary set of data. But in experimental techniques, ...
192 views

### How do I animate a bar chart?

Is there any easy way to have an animated bar chart (one where the heights of the bars change with time)? I currently have the following code: ...
97 views

Consider: ...
91 views

### Error bars in BarChart3D

Following the page on error bars in charts I wanted to make a BarChart3d with error bars, but I'm struggling with it because there is no help about the function "ChartElementData", which is used to ...
175 views

### List of points with colors

I am working with a list of points on the plane, to each of them a natural number is assigned. It will be responsinble for the points' colors. 1) My first question is very easy: at initial moment I ...
109 views

...
111 views

### Plotting many tuples with ListLinePlot [closed]

I have data tuples, and I want to visualize them in an "overview" in a single plot with ListLinePlot. Example data: ...
54 views

### How to change vertex font size in TreeGraph?

I tried to change vertex label font size by the following code ...
195 views

### Plotting animated point on a polar plot

How can I animate a point on a polar curve? I have used Animate and Show together before in order to get the curve and the moving point together on the same plot, but combining the polar plot and the ...