Questions tagged [figures]

91 questions
2
votes
1 answer

How to display a matplotlib figure object

I am working with a matplotlib-based routine that returns a figure and, as separate objects, the axes that it contains. Is there any way, that I can display these things and edit them (annotate, change some font sizes, things like that)? …
bob.sacamento
  • 6,283
  • 10
  • 56
  • 115
2
votes
1 answer

Index annotation on a Matlab Plot

I'm facing the following issue: I'm analyzing the relationship between a certain impedance value (Complex) and Temperature. The impedance is calculated for a range of Temperature values and then I plot the real and imaginary part of the impedance…
2
votes
1 answer

How to print multiple open figures, How to simplify importing data to MATLAB

I have two questions: I have like twelve open figures in MATLAB (already generated by another function, figure 1 to 12) and I want to print them all to a file, but also to my printer. How can I write the code for that? I already read about getting…
Leo...
  • 321
  • 2
  • 4
  • 14
2
votes
1 answer

How do I fill in the area between two lines and a curve that's not straight in MATLAB (the region is not a polygon)

Using matlab's FILL function creates a filled region confined by a polygon with straight edges: Unfortunately this leaves a small white region in the figure above, because the boundary of the region I want filled in is not a straight-edged polygon,…
Nike
  • 1,223
  • 2
  • 19
  • 42
2
votes
3 answers

Shortest path with figures on board

I'm having trouble with my homework assignment(C++). I'm not asking for the complete solution, but tilt in the right direction could be helpful. :) I have a NxN board (max N = 100) and a 1x2 figure (cube) on that board. The cube is painted red on…
ante.ceperic
  • 263
  • 2
  • 9
1
vote
4 answers

Docbook - more images in one figure

Is there in Docbook something similar to Subfig from LaTeX? I want to put two images in a figure, side by side - how is this done in Docbook?
j_maly
  • 1,091
  • 1
  • 13
  • 27
1
vote
1 answer

Dividing a figure and handling Xticks (Matlab)

I have some problems with figures in Matlab. I divided my bar plot into two figures since I have totally 171 bars. I took the first half of the data at first (figure 1) and then the second half (figure 2). But then I got a problem with Xticks. Now…
alex
  • 87
  • 1
  • 1
  • 4
1
vote
1 answer

How to save lmplot in pandas

For reg plot, this is working: sns_reg_plot = sns.regplot(x="X", y="y", data=df) sns_reg_fig = sns_reg_plot.get_figure() sns_reg_fig.savefig(path) But for lm plot I get an error: sns_lm_plot = sns.lmplot(x="X", y="y", hue="hue", data=df) .. …
Cranjis
  • 1,590
  • 8
  • 31
  • 64
1
vote
1 answer

how to get animated patches instead of n-times plotted patches using Python and matplotlib

i am using Python 2.7 (Anaconda) with matplotlib to get the animation of a square patch on a "desk" square patch -background-, so that the little square has to move along a required direction (north,south,est,west) for range=n positions(move=1). I'm…
mefit0
  • 11
  • 4
1
vote
1 answer

MATLAB: Plotting 2 figures into 2 axes, in a GUI

I have 2 figures generated that show a 3D cube, and one that shows a net. I have associate these with two axes in a GUI using this: axes(handles.cube); axes(handles.net); What I do not understand is how to transfer the figure into each one. This…
1
vote
1 answer

Add event handler (MouseDown) dynamically for PathFigure C# WPF

I created an object from points with this code, dynamically: SolidColorBrush brushColor = (SolidColorBrush)new BrushConverter().ConvertFromString(_brushColor); PathFigure figures = new PathFigure(); figures.StartPoint =…
dodoria1992
  • 127
  • 1
  • 3
  • 14
1
vote
1 answer

matplotlib very slow in plotting

I have multiple functions in which I input an array or dict as well as a path as an argument, and the function will save a figure to the path of a particular path. Trying to keep example as minimal as possible, but here are two functions: def…
Dhruv Ghulati
  • 2,976
  • 3
  • 35
  • 51
1
vote
1 answer

Prevent figures/listings from being inserted into specific parts of a LaTeX document

I have a part A in a document with some text and listings/figures in between. The figures and listings are positioned using htb. Following this part A, there is the bibliography. However a couple of figures do not fit and are therefore are offset to…
HTTPeter
  • 247
  • 1
  • 4
  • 13
1
vote
1 answer

EPS figure in pdf output is transparent and placed over text - a Latex problem

I have generated eps figures in MATLAB and am using them in Latex. (Miktex 2.9 with TexnicCenter). I dont understand why the output ( PS-> pdf ) shows the figure on top of the text below it. Also the figure appears to have a transparent background…
hkf
  • 663
  • 2
  • 11
  • 23
1
vote
1 answer

Compute figures

Is there any way to compute figures as a sets of points in Python? I mean, lets say that I define a circumference and a triangle and then, I define a new figure that is the result of the intersection of the triangle and the circumference. With that…
cuentafalsa7
  • 23
  • 1
  • 6