Questions tagged [grid]

NOT FOR CSS GRID LAYOUT. Instead use [css-grid]. This tag is ambiguous, please don't use it. For row-column layouts, use [grid-layout]. For the HPC setup, use [grid-computing]. For the R plotting package, use [r-grid]. For multi-dimensional data, use [matrix] or [array] or [raster]. For WPF-Grid control, use [wpfgrid]

In computing grid typically refers to either , or , or the plotting package , or multidimensional data //.

A is a layout which divides a specified area into a defined number of rows and columns. Visually it closely resembles a table with the key distinction being a table layout should be associated with data firstly, whereas a grid layout can include various types of content. A grid is a structure (usually two-dimensional) made up of a series of intersecting straight (vertical, horizontal, and angular) or curved guide lines used to structure content. A grid can be used to organize graphic elements in relation to a page, in relation to other graphic elements on the page or in relation to other parts of the same graphic element or shape.

(aka "Grid"), is a two-dimensional grid-based layout system that aims to do nothing less than completely change the way we design grid-based user interfaces. CSS has always been used to lay out our web pages, but it's never done a very good job of it. First, we used tables, then floats, positioning and inline-block, but all of these methods were essentially hacks and left out a lot of important functionality (vertical centering, for instance). Flexbox helped out, but it's intended for simpler one-dimensional layouts, not complex two-dimensional ones (Flexbox and Grid actually work very well together). Grid is the very first CSS module created specifically to solve the layout problems we've all been hacking our way around for as long as we've been making websites.

is the collection of computer resources from multiple locations to reach a common goal. The grid can be thought of as a distributed system with non-interactive workloads that involve a large number of files. What distinguishes grid computing from conventional high performance computing systems such as cluster computing is that grids tend to be more loosely coupled, heterogeneous, and geographically dispersed. Although a single grid can be dedicated to a particular application, commonly a grid is used for a variety of purposes.

is a low-level plotting package for .

and refer to 2-dimensional and multi-dimensional rectangular data structures.

is a 2-dimensional array of pixels.

11913 questions
2
votes
0 answers

Regridding and plotting netcdf file with irregular grid

I am trying to regrid my .nc data with irregular grid with the following code: from mpl_toolkits.basemap import Basemap from netCDF4 import Dataset as NetCDFFile import matplotlib.pyplot as plt import numpy as np from scipy.interpolate import…
2
votes
1 answer

I can't get my tags to center inside of my grid

I'm attempting to code my first website from scratch and I have found myself stuck on this problem for the last day. I am trying to center the logos for my mobile view. I have them placed correctly in my @media tag and they are displaying inside the…
Noneik
  • 23
  • 2
2
votes
0 answers

Strange bug with vertical arrangement in Compose

I am building a LazyVerticalGrid and have different kind of Compose views in it. My plan is to add equal spacing between children of the grid and I already achieved this passing down Arragment.spacedBy(24.dp) to verticalArragement. However,…
nuhkoca
  • 1,777
  • 4
  • 20
  • 44
2
votes
0 answers

How can I create a non-rectangular wedge domain in Numpy

I am doing some computational fluid dynamics (CFD) simulations for some research, and I have come across a paper that I would like to build upon. In principle, I am trying to simulate flows and viscosities etc inside a triangular shaped container.…
Johnny
  • 320
  • 3
  • 12
2
votes
0 answers

How to show page indicator for LazyHGrid in Swift UI

I want to achieve the pagination and page indicator with dots as in Swift (UIPageControl) in swift UI. I am using a lazy H grid, and a button inside a for Each loop to get the horizontal grid. How to add the page indicator to LazyHgrid to achieve…
abinbabu
  • 43
  • 8
2
votes
3 answers

How do I set a proportional value for row height in a listView so it occupies the entire screen?

I need the items in my listView to have a height so it the list exactly fits the screen. Here's my code given below. I tried setting the Height of rows in my grid to a custom value, but that would work well, fitting the screen in some devices, while…
Kalindu
  • 111
  • 2
  • 9
2
votes
1 answer

need a truly data-aware and data-driven grid for .NET that uses GUIDs as row-handles

I am looking for a data-aware grid for .NET that has been optimized for repeated changes of the underlying dataset. I will give an example to show what I mean by optimized in that context, since almost all grids let you change the datasource. But…
Tim
  • 5,371
  • 3
  • 32
  • 41
2
votes
2 answers

fast computation of histogram on a grid

I have a greyscale 200x200 image and I would like to compute the histogram of the intensity for each 8x8 window in the image. How can I compute that fast? I use for loops now but it is so slow. My current code looks like: I =…
user499372
  • 129
  • 1
  • 2
  • 10
2
votes
1 answer

Algorithm to fill arbitrary marked/selected tiles on a square grid with the smallest number of rectangles?

What I am asking here is an algorithm question. I'm not asking for specifics of how to do it in the programming language I'm working in or with the framework and libraries I'm currently using. I want to know how to do this in principle. As a hobby,…
Ben McLean
  • 59
  • 4
2
votes
1 answer

Bootstrap-framework - col-sm - grid for small screens doesn't work

I've been trying a lot of things but couldn't find the solution to my problem. I want to align 3 different parts in a certain way for all kind of screens but col-sm and col-xs from bootstrap are not working. I've tried this :
Reminder
  • 21
  • 1
2
votes
1 answer

How can i fit my tkinter app to any size screen?

im doing an tkinter app in a computer, im using the grid() method to place the widgets. At first of the program i use this code to make the window size like the screen size: an = self.root.winfo_screenwidth() al =…
2
votes
3 answers

Easy way to change Grid.Row and Grid.Column in many controls in WPF

I have this situation 1000 times already: I have grid with 2 columns and many rows. Mostly i have TextBlock in first column and TextBox in second but not always. Now when I have 50 rows and I decide to move row 49 to the first row in grid, and I…
das
  • 21
  • 1
  • 2
2
votes
1 answer

Display total number of rows in footer of devexpress grid

I need to display total number of rows in a grid, in footer. I have made the footer enable by setting : "this.gridViewTradePoster.OptionsView.ShowFooter = true;", but don't know how to set the text on the footer so that it displays total number of…
Manali
  • 295
  • 3
  • 5
  • 16
2
votes
0 answers

Creating spatial grid from list of centroids using R

I have a list of coordinates (lat, lon) and would like to create a grid of squares where each of these coordinates is in the center of the square using R, and preferably SF (as I am used to it), but also open for other suggestions. I basically…
Guy Pincus
  • 37
  • 2
2
votes
2 answers

Grid generation & division with css/js/php

I am working on a web project, and I am thinking on how to best approach the following scenario: I have a bunch of images in a database and I want to load this in a grid. High ranked images need to have a bigger canvas, while lower/not ranked ones…
dandoen
  • 1,647
  • 5
  • 26
  • 44