All Questions

Filter by
Sorted by
Tagged with
4
votes
2answers
129 views

Align y-Axes in Overlay plot

I learned about how to plot two datasets in a single plot with two y-axes by using Overlay as has been done in one of the answers in this question. Now, my ...
2
votes
1answer
52 views

How to get rid of some meshes in ListDensityPlot

I have some data that needs to be represented using the function ListDensityPlot, for example : ...
1
vote
2answers
86 views

Preventing “-Graphics-” Output from ListPlot[] Command

Whenever I try to create a Graphics object in a Mathematica notebook, the output is always "-Graphics-". I have searched and found others who had similar problems, but attempting to implement these ...
0
votes
1answer
58 views

How to export histogram legends correctly?

Found it really hard to export a high resolution .png while keeping the legends. Here is the code: ...
0
votes
0answers
35 views

How can I suppress traditional form output in a frame label? [duplicate]

When I draw a plot with the frame label $P_z$, the $P$ is shown in italic auto. What I want is a normal $\rm P_z$. How can I get it? Here is an example: ...
2
votes
1answer
29 views

How to add another sets of data to the BubbleChart3D without impacting the shape of bubbles?

I have some codes as below:- Data points ...
0
votes
2answers
66 views

How to make the legend with color more compact in a plot?

I have a plot as below:- ...
8
votes
1answer
111 views

How to make GeoListPlot rectangular?

I have a GeoListPlot as below:- gr = {{20, 70}, {-30, 30}}; GeoListPlot[Entity["City", {"Paris", "IleDeFrance", "France"}], GeoRange -> gr] As you can see, ...
0
votes
1answer
226 views

How to force Mathematica to show the plots in one row? [closed]

Consider we have two different plot commands in Mathematica. In the output there are one plot and another one below. But I want the output to be organized in one row: on the left there is one plot, ...
2
votes
3answers
360 views

Scientific notation in plot title

I have problem with displaying variables in scientific notation in plot title. Below is my code sample, ...
1
vote
1answer
283 views

VectorPlot3D of the Electric Field E as Determined from the Potential V

I am new to Mathematica and I am trying to create the electric field $F$ from the electric potential $V$ (using arbitrary distances) and then plot the subsequent vector graph to show that the electric ...
3
votes
3answers
129 views

Formatting fractions in front in PlotLegends

I have this Plot: ...
3
votes
1answer
110 views

ScientificForm without dot “.”

I can enter large integer numbers as 2*^11. Is there any way to get such an object as output? I am asking because I want to generate ticks for my plot in this form, ...
4
votes
3answers
589 views

Histogram Bar Line Thickness

This feels like it should be pretty simple but I am struggling. Does anyone know how to control the thickness of the lines of the bar in a histogram? I tried playing with ...
1
vote
3answers
116 views

Right aligned GraphicsColumn of plots with nonstandard aspect ratios exhibits empty space

I have several plots with different y-axis ranges. This is the main reason I want the content being aligned Right in a ...
6
votes
2answers
344 views

Perfect vertical alignment (centering) of PointLegend markers and their labels [duplicate]

I want to produce a stand-alone PointLegend for a bunch of plots which I generated. Unfortunately, the markers are slightly off-axis. I have applied all the options ...
0
votes
1answer
173 views

NDSolve output works in Plot but not in ParametricPlot

Context: I'm trying to plot a phase-space orbit. After struggling for a good long while, I realized that I could solve the x differential equation analytically, rather than relying on NDSolve, and was ...
5
votes
1answer
76 views

Formatting standard function names in plot legends

Consider the following: Quit[] Format[Exp[x_], TraditionalForm] (* e^{x_} *) Format[Log[x_], TraditionalForm] (* log(x_) *) Now ...
2
votes
1answer
62 views

Get function from specialized plot

I have generated a 3D plot using a specialized plotting function (in this case, SmoothHistogram3D). I would like to extract the function shown in this plot (even if ...
3
votes
1answer
158 views

Setting all images to ImageSize->Small

Is there a way that I can set the image size of all images in a notebook to ImageSize->Small in some sort of initialization cell? Update: Following Szabolcs's helpful advice, here is what happened to ...
4
votes
3answers
100 views

ArrayPlot: PixelConstrained doesn't account for Mesh thickness

When using ArrayPlot with both PixelConstrained->True and Mesh->True, the lower and right walls of the mesh both drop out: ...
0
votes
0answers
79 views

Plots shrink after closing and opening the notebook

I find that every time after I save a notebook and then close and reopen it, the plots and figures will shrink in size compared to the original ones I saved. Is there any way to fix the sizes? Thanks. ...
2
votes
1answer
119 views

Accessing Plot's default formatting [duplicate]

I'd like to plot multiple sets of data, along with trend line fits for each. I can do this by plotting the fits, and then including the data in an Epilog. But I'd ...
5
votes
3answers
468 views

Using different style on segments of a plot [duplicate]

Is it possible to plot a function with two different colors? To illustrate, let's have: Plot[Sin[x], {x, 0, 2 π}] which plots a curve. And I would like it to be ...
7
votes
2answers
447 views

Bar chart scale in multi-chart visualisation

This is a rewording of a previous question which probably wasn't very well explained, and so didn't get any responses(!). I'm trying to create a chart which shows the smooth kernel distribution of ...
3
votes
2answers
123 views

How to set global style of controls in Manipulate?

I created a Manipulate code which is using several sliders, with the same font output (style, size, font familly, ...). How can I save some space by defining a global style for all the slider ...
6
votes
4answers
176 views

How to add/insert a well aligned graphics on top of another one?

I need to add a small graphics on top of a larger one, and the small graphics should stick very close to the large one, with their axis aligned. Here's a minimal code to work with, using some ...
2
votes
1answer
101 views

Same mesh graduations on a plane as axes ticks

I need to define a plane with a mesh as a reference plane. Currently, the mesh lines don't match the axes ticks. That plane is defined so it can adapt automatically to a variable scale in a ...
0
votes
0answers
30 views

How to remove extra space around polar plot in manipulate? [duplicate]

In Manipulate, PolarPlot adds lots of useless space around the exterior circular grid. Is there a way to remove that space, so the whole circular plot could take more space ? Here's a MWE showing ...
6
votes
3answers
1k views

Ugly fraction in a label

I'm having difficulties in displaying a proper fraction in a label. Here's the 2D graphics which shows the problem : ...
0
votes
2answers
172 views

Ticks on axes with a frame without frameticks [duplicate]

I would like to draw a simple 2D graphics with a frame, without any FrameTicks, but still having central axes with ticks. The code is this : ...
4
votes
3answers
315 views

How to remove the white border in Manipulate?

Is it possible to remove the default white space around a 3D graphics, inside the Manipulate box ? Here's a small MWE to show the white border I'm talking about : ...
3
votes
1answer
346 views

How to align text to left and output to right, in manipulate?

I need to show a layer of information on a 3D graphics, inside a manipulate box. Currently, all the code is working great, except that the text should be aligned to the left, while the output numbers ...
1
vote
2answers
692 views

How to add text with output on a 3D manipulate

I need to add a string of text with some output data at the bottom-center of a manipulate output. The manipulate output itself is 3D. Here's a MWE to work with : ...
10
votes
1answer
159 views

Exported graphics have issues with word wrapping

I am trying to export a plot as an image. My actual plot uses Show to combine a ListPlot and several Plots, with a common legend. The code below is a dummy version that produces the same problem: <...
0
votes
3answers
585 views

Place cells side-by-side

Is there any way to place plots/cells side-by-side? I know how to put plots in arrays and grids. The motivation for putting cells side by side is that I want the equations for the plots to be above ...
0
votes
3answers
540 views

How can I write the frame ticks in Scientific Form?

Is there any way to remove the decimal places in the frame ticks. I would like to make the y axis ticks integers. I use the following code. My only problem is how to manipulate the y axis without ...
6
votes
1answer
570 views

Set PlotTheme globally?

Can one set a default PlotTheme globally? While I recognize one can make lots of workarounds to sort of do this: Go to ...
1
vote
1answer
2k views

How to plot a 3D surface from an Excel matrix, using column and row headers as axis labels

I am trying to use Mathematica to plot a surface chart similar to the ones that are created from Microsoft Excel. The point is to be able to easily colorize and manipulate the plot by free 3D rotation,...
0
votes
1answer
88 views

How do I apply a conditional append rule to plot randomly chosen points?

I'm working on an attempt at forming a sort of "Mandelbrot" set using Newton's method and randomly chosen points. Effectively I need to define a loop for Newton's method to determine whether my points ...
2
votes
2answers
1k views

Prevent axis label being cutoff

I am running into an issue whereby my Y frame label (I want to use this rather than an axis label to make the label vertical), is being cutoff when I view the graph. See below for an indicative ...
13
votes
3answers
939 views

Changing BarLegend border style

I want all the lines in my plot to be a consistent style, let's say thick and black for the purpose of this question. ...
-1
votes
1answer
653 views

Formatting and inserting a parameter table into a plot

I'm fitting data, and I want to put the parameter table generated by NoninearModelFit into the plot. How can I do that in a reasonable way? I want to format the ...
2
votes
2answers
249 views

How to remove a gap between the chart labels and the frame in a BoxWhiskersPlot

When making a nested BoxWhiskersPlot with chart labels, the labels are nicely spaced below the bottom frame when using labels for all nested data ...
7
votes
2answers
600 views

Plots using TextAlignment with SwatchLegend to left align multi-line items

I have Legends that stretch over multi-lines and the only way I can get them left aligned is by adding white space to the end of the legend item. Does anyone know if there is a way to use ...
2
votes
1answer
1k views

Removing the white space around plots when using customized FrameTicks

I'm using the CustomTicks package, which is part of the LevelScheme package, for styling the ...
2
votes
3answers
4k views

ListLinePlot x-axis units label

If I want to label the $x$-axis of a ListLinePlot , how do I do that? There are two types of label: a units label which would go to the right of the axis, and ...
13
votes
2answers
825 views

Disconnected Frame/Axes in Plots

Is it possible to have "Tufte" style figure axes? That is so that the axes do not need to connect or span the entire data range? For an example of what I mean from the R's default histogram style: I ...
21
votes
7answers
6k views

Ugly output when combining 2 plots with GraphicsRow

Here are the data that I want to plot: ...
0
votes
1answer
187 views

Plotting blends of colors over lists of lists in 3D

I have a list of lists containing spectral data, many thousands of points long. Each sublist contains 13 parts, and I need to plot them in 3D with a blend of RGB colors derived from the spectral data....