Questions tagged [insets]

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

131 questions
2
votes
1 answer

TableView inside Navigation Controller: Zero Edge Insets on the Left and on the Right?

I have got a TableView inside a Navigation Controller. By default, the TableView has edge insets set on the left and on the right. That is, the content's width in the TableView is smaller than iPhone width. My designer wants me to have the content…
user1006117
  • 431
  • 4
  • 16
2
votes
5 answers

Insets.top , left, bottom, right all zero

This is a sample of the code that I am using to instantiate a JFrame: public class TestFrame{ public static void main(String[] args){ JFrame frame = new JFrame(); Insets insets = frame.getInsets(); frame.setSize(new…
lilroo
  • 2,928
  • 7
  • 25
  • 34
1
vote
1 answer

iOS. How to draw complex images on a UIButton?

I need to make something like this (rectangles mean various pictures): I know that it is possible to do this by making one image from two and assigning it to a UIButton. But is there another way to do it by using insets?
Gargolev
  • 43
  • 7
1
vote
0 answers

Compose ExposedDropdownMenu system bar issue in edge to edge

I have a list of ExposedDropdownMenus and an edge-to-edge state of app implemented by using insets. WindowInsetsControllerCompat(window, bindingActivity.root).let { controller -> controller.hide(WindowInsetsCompat.Type.systemBars()) …
1
vote
0 answers

How to make a zoomed inset with plotly?

Basically, how to do the following with plotly, in Python 3?
mykahveli
  • 113
  • 4
1
vote
2 answers

How to make an inset plot with mollweide projection?

I want to make a skymap using the Mollweide projection for a main set of axes and for an inset axes. This is easy for the main axes but not for the inset. I've tried a few different things but it doesn't work for the inset. Please help! Here you can…
1
vote
1 answer

How do I place insets at exact positions on a ggplot and set the colors of geom_segment?

I'm creating an illustration of how loess works. My two queries are at the end of this question. First, setup: library(tidyverse) data(melanoma, package = "lattice") mela <- as_tibble(melanoma) tric = function(x) if_else(abs(x) < 1, (1 -…
mk9y
  • 320
  • 2
  • 11
1
vote
1 answer

Insert an svg image in matplotlib figure

This is a follow-up to my previous post here. I'm trying to add an SVG image in matplotlib figure as inset. import matplotlib.pyplot as plt import numpy as np from matplotlib.figure import Figure from matplotlib.offsetbox import OffsetImage,…
Natasha
  • 1,111
  • 5
  • 28
  • 66
1
vote
0 answers

Adjusting spacing between axes label and axes boundary in matplotlib inset

I've generated a network figure and I'm adding this as an inset to a figure generated in matplotlib: import networkx as nx import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib.transforms import Bbox import numpy as…
Natasha
  • 1,111
  • 5
  • 28
  • 66
1
vote
0 answers

React native android scrollview - Content Inset / Content Offset not applied

SNACK - https://snack.expo.io/@dellybro/32f625 As the title suggests, when working with react native scroll view the content inset and content offset do not seem to be applied. Android and iOS both seem to have a different affect. The following is…
Travis Delly
  • 1,194
  • 2
  • 11
  • 20
1
vote
1 answer

Colorbar for inset in python

I am trying to add an additional small colorbar for the inset axis. The current code, without that, is import numpy as np import matplotlib.pyplot as plt from matplotlib import cm import matplotlib.colors as colors from…
1
vote
0 answers

UIScrollView content insets can't be removed?

Hello I am trying to create a side scroller with swift (I need to be compatible with IOS9 and I can not use UIScrollview.contentInsetAdjustmentBehavior = .never) and I am having trouble creating a UIScrollView which does not have a content inset.…
TeeJaay
  • 136
  • 8
1
vote
1 answer

add plot inset (subplot) and multiple standard deviations to ggplot() with filtering based on conditions in R

Part 1: We are trying to make a ggplot() that shows multiple different summary statistics depending on the x-axis. We have more or less managed to do this, but are open to suggestions to help with efficiency. For Time 0: have error bars bounded…
Blundering Ecologist
  • 1,199
  • 2
  • 14
  • 38
1
vote
1 answer

matplotlib zoomed plot window inside a main plot?

I am trying to plot a zoom plot inside the main plot. I was successful in running the code and getting the plots. But there was no zoom-in. My code: # create some data to use for the plot dt = 0.001 t = np.arange(0.0, 10.0, dt) r =…
Mainland
  • 4,110
  • 3
  • 25
  • 56
1
vote
1 answer

Problem with GridBagLayout while adding JComboBox and JButton

In the output, I don't need the gap between the button 4 (b4) and button 5 (b5) but I couldn't do that and I tried insets also but my attempts are in vain. Can you help me out with any suggestions or any mistakes I have committed? I observed that…
1 2 3
8 9