Questions tagged [insets]

inclusion of smaller elements within larger elements; includes html elements, pictures, graphs

131 questions
1
vote
1 answer

Save a corner plot in matplotlib figure

I have a simple corner plot. Lets just imagine the example from their page (taken from here): import corner import numpy as np ndim, nsamples = 2, 10000 np.random.seed(42) samples = np.random.randn(ndim * nsamples).reshape([nsamples, ndim]) figure…
Ayan Mitra
  • 497
  • 1
  • 8
  • 20
1
vote
1 answer

Add a plotly figure as an inset to another plotly figure

I think this is a plotting situation that probably commonly occurs in data science. I have some data on which I'm conducting a statistical test and I want to plot the data together with the outcomes of the statistical test in a single plot. Here's…
dan
  • 6,048
  • 10
  • 57
  • 125
1
vote
0 answers

Zoom in on polar plot

I'd like to create an inset within my fig which is a zoom in on part of my polar plot. I've tried various different methods but can't seem to crack the correct way to do using matplotlib. My code to create the plot (from my pandas dataframe) is…
nrs90
  • 168
  • 1
  • 3
  • 19
1
vote
0 answers

How to make space between icon and label in Charts iOS Swift?

I using Chart component for iOS Swift. My chart contains icon and label(digit number). And my number label is behind of icon. How to fix this problem. I can move my icon like this: iconsOffset But I wanna move label top of icon.
reza_khalafi
  • 6,230
  • 7
  • 56
  • 82
1
vote
0 answers

Losing resolution inset plot Python

I'm trying to insert a plot into another one by using: ... im = plt.imread(get_sample_data('Inset.eps', asfileobj=True),format='eps') newax = f.add_axes([0.14, 0.30, 0.45,…
1
vote
1 answer

Matplotlib change style of inset elements singularly

I am trying to plot some data on which I would like to make an inset to show some details. It is quite easy to create the inset and set the characteristics of the plot inside the inset. What I have found cumbersome is how to set the properties of…
Alex Pacini
  • 314
  • 4
  • 14
1
vote
1 answer

Changing size of scientific notation tick labels in Matplotlib

I am plotting an inset into a bigger figure and I have a problem with resizing the ticks for both axes for the inset. I have looked at this question Matplotlib make tick labels font size smaller and managed to resize ticks. However, my ticks are…
Elle
  • 43
  • 2
  • 7
1
vote
1 answer

map inset in MarMap / including a marmap file in ggplot2

I have a marmap plot of a marine sanctuary, but as it's very zoomed in, i'm trying to include an inset of the US state it's in (Massachusetts). currently, my code is as follows: library(marmap) stellie <- getNOAA.bathy(lon1 = -70.8, lon2 = -69.9, …
EmV
  • 11
  • 3
1
vote
3 answers

UITableViewCell separator insets don't work when table.width is much greater than view.width

UITableViewCell separator insets don't work when table.width is much greater than view.width on iOS 10, I haven't try it on the device which iOS version is less then iOS 10. code is here on gist
Kevin Hawk
  • 308
  • 2
  • 10
1
vote
0 answers

UIBarButtonItem: Image Insets: can't resize the width of the image

I want to resize an image in a UIBarButtonItem. (I'm not setting a customView and using a UIImageView, just setting the image property of the UIBarButtonItem). Image Insets seem not working for the width of the image. Top and Bottom do they work,…
aneuryzm
  • 63,052
  • 100
  • 273
  • 488
1
vote
1 answer

ggplot2 add two plots in grid.arrange with an inset in the second one in R

I'm able to print an inset and to create a grid from plots in ggplots. But I'm not able to create a grid with a plot on the left and 2 plots on the right one full size and the other in "inset". a_plot <- ggplot(cars, aes(speed, dist)) +…
M. Beausoleil
  • 3,141
  • 6
  • 29
  • 61
1
vote
2 answers

Horizontal collection view has space above cell. How to remove it?

I have collection view with cells I'm presenting horizontally + paging enabled. However I have above cell space that I cant remove (green on screenshot - collection view background). Size of cell is same as containers frame. For better understanding…
Lachtan
  • 4,803
  • 6
  • 28
  • 34
1
vote
1 answer

Top Empty Space Added in UIScrollView

I created an ScrollView Programatically using swift I added a UIView in it After adding these both to view it shows Empty Space on Top of the ScrollView How can i remove that, i searched in google and i found several and i tried…
anjnkmr
  • 838
  • 15
  • 37
1
vote
0 answers

Managing UITableView contentInsets

I have controller, call it ActionBarViewController (it inherits UIViewController). It has view, call it ActionBarView. That view has 2 subviews - contentView and actionBar. contentView frame equals to ActionBarView frame. actionBar frame is small…
SiavA
  • 424
  • 5
  • 12
1
vote
1 answer

UIButton image on right title in center

I was searching through the post and trying to figure it out by myself but it is hardly working. I want to use an UIButton with image and title. UIButton spans across (almost) whole screen. The image should be positioned on the right edge of the…
Dzior
  • 1,485
  • 1
  • 14
  • 30
1 2 3
8 9