标签: gridlines

带有GRIDLINES的HTML/CSS表

如何在HTML表格中显示网格线?(我正在使用IE6)

html css gridlines

37
推荐指数
2
解决办法
12万
查看次数

wpf网格线 - 改变风格

有没有办法改变wpf网格中网格线的样式?我需要将网格划分为4个单元格.为此,我使用了RowDefinitions和ColumnDefinitions.但是我需要用户区分哪个单元格哪个,这就是我需要更改网格线颜色的原因.

wpf grid gridlines

30
推荐指数
1
解决办法
6万
查看次数

网格线与轴上的刻度一致

我很尴尬地问这个简单的问题,但每当我创建一个情节时,我已经开始思考几天:

plot (x = 1:10, y = rnorm (10, 5, 2))
grid (10,10, lty = 6, col = "cornsilk2")
Run Code Online (Sandbox Code Playgroud)

我想将网格定位在轴标记的位置,即x轴为2,4,6,8,10,y轴为3,4,5,6,7,8.

在此输入图像描述

我想在绘图大小更改默认标签行为更改时自动执行该过程.见下图:

在此输入图像描述

r graph gridlines

26
推荐指数
3
解决办法
4万
查看次数

如何在JTable中隐藏网格线

我试图隐藏JTable的网格线但没有结果.即使尝试更改网格线的颜色也不起作用.这是我的代码:

    // build the table
tableView = new JTable(ttm);
//Specifify the selection Listener and model
listSelectionModel = tableView.getSelectionModel();
listSelectionModel.addListSelectionListener(new SharedListSelectionHandler(tableView));
tableView.setSelectionModel(listSelectionModel);

//Add a mouse listener to our table and implement double click event
tableView.addMouseListener(new MouseAdapter(){

    public void mouseClicked(MouseEvent e){

        //If double click in a message show the Message Details window
        if (e.getClickCount() == 2){

            showMessageDetail();
            }
    }


} );

// set my own renderer
CustomCellRenderer mtr = new CustomCellRenderer();
tableView.setDefaultRenderer(Object.class, mtr);
// table properties
tableView.setGridColor(Color.black);
tableView.setShowGrid(false);
//tableView.setShowVerticalLines(false);
//tableView.setShowHorizontalLines(false);
tableView.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
//hide …
Run Code Online (Sandbox Code Playgroud)

java swing jtable gridlines

10
推荐指数
1
解决办法
1万
查看次数

Google Chart设置网格线颜色

我正在尝试使用Google Charts在我的图表背景中设置网格线的颜色.

我有这个代码来设置图表的选项:

ac.draw(activityData, {
    title : 'Monthly Coffee Production by Country',
    isStacked: true,
    width: 600,
    height: 400,
    fontSize: 0,
    backgroundColor: '#1E4D6B',
        hAxis.gridlines.color: '#1E4D6B'
});
Run Code Online (Sandbox Code Playgroud)

但是,我不知道如何使用配置选项页面hAxis.gridlines.color中出现的代码中的选项.

如果我简单地说hAxis.gridlines.color,它在控制台中出现错误:

未捕获的SyntaxError:意外的令牌.

使用包含句点的选项的正确语法是什么?

javascript syntax google-visualization gridlines

9
推荐指数
2
解决办法
9061
查看次数

地图的主要和次要刻度?

我创建了下面的地图,它有一个均匀的灰色网格,间隔为1°,对于经线和纬线:

用灰色网格映射

我还希望每隔5°间隔(同时保持1°网格)使经线和平行线变粗和变黑,以便网格线与纬度和经度标签匹配,如下所示:

地图与灰色和黑色网格

我知道MATLAB有标准2D图的主要和次要网格,我过去曾使用它们.但是,据我所知,地图没有此功能.

我认为我想要做的就是通过访问地图对象属性(使用gcmgetm)并为特定子午线和平行子(使用)指定黑色属性来实现setm.也许功能gridmaxesm可以处理这个,但我不确定.

在实践中,我不知道如何做到这一点,因为我没有任何地图经验.我真的很感激你的帮助.

码:

注意:此代码需要Mapping Toolbox.

% Read vector features and attributes from shapefile.
landareas = shaperead('landareas.shp', 'UseGeoCoords', true);

% Define map axes and set map properties.
axesm ('lambert',...
    'MapLonLimit', [-70 10],...
    'MapLatLimit', [30 70],...
    'MapParallels', [38.00555556 71.01111111],...
    'Frame', 'on',...
    'FLineWidth', 1,...
    'Grid', 'on',...
    'GLineStyle', '-',...
    'GLineWidth', 0.1,...
    'GColor', [.7 .7 .7]);

% Display map latitude and longitude data.
geoshow(landareas, 'FaceColor', [1 1 .5], …
Run Code Online (Sandbox Code Playgroud)

matlab plot gridlines geo matlab-figure

9
推荐指数
2
解决办法
616
查看次数

GridLine位于Mathematica的条形图之上

是否可以在BartChart上获得GridLine?网格线将其绘制在下,而Mesh似乎不适用于BarChart.

BarChart[{Range[10], Range[10]}, 
         ChartLayout -> "Stacked", 
         GridLines -> {None, {4}}, 
         GridLinesStyle -> Directive[Orange, Thick]]
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

wolfram-mathematica gridlines bar-chart

8
推荐指数
1
解决办法
1300
查看次数

nvd3折线图,如何删除网格线和y轴

我用取景器制作了一个折线图.

这是我的初始代码

     var chart = nv.models.lineWithFocusChart();

 // chart.transitionDuration(500);
  chart.xAxis
      .tickFormat(d3.format(',g'));
  chart.xAxis
        .axisLabel("Date");
  chart.xAxis.tickPadding(0);


  chart.x2Axis
      .tickFormat(d3.format(',g'));




  chart.yAxis
      .tickFormat(d3.format(',.2g'));
  chart.y2Axis
      .tickFormat(d3.format(',.2h'));
 // chart.showYAxis(false);
Run Code Online (Sandbox Code Playgroud)

我想删除y轴标签(即我想要在y轴上没有显示数字).

我还想删除所有网格线.

有没有像chart.yAxis.something这样做?

谢谢

charts line gridlines nvd3.js

8
推荐指数
2
解决办法
2万
查看次数

如何让Google Visulization LineChart显示垂直网格线?

我正在使用javascript在我的网络应用程序中显示Google Visulization LineChart.如何让它显示垂直网格线?我已经阅读过使用chg来设置它们,但据我所知,只有在使用查询字符串方法制作图表时才适用.你能告诉我如何在初始化LineChart时得到垂直网格线,如下所示:

new google.visualization.LineChart(div.get(0)).draw(data, { title: 'Unique visitors - Previous Month', width: div.width(), height: 330, chartArea: {left:50, width:"90%"}, legend: 'none', yAxis: {title: '(thousands)'} });

linechart gridlines

7
推荐指数
1
解决办法
2439
查看次数

在JavaFX中清理gridPane并维护网格线

我正在尝试在JavaFX中制作一个简单的游戏(这是一项学校工作),我试图用电路板清除面板,然后重新绘制它.我已经尝试了很多方法,这是我发现的唯一一个删除了所有板块(可视化)而没有创建一个可视错误,显示已经删除但仍然显示的块.

所以我声明gridPane如下:

private GridPane gridPecas;

@Override
public void start(Stage primaryStage)
{
    gridPecas = new GridPane();
    gridPecas.setGridLinesVisible(true);

    paintBoard();

    // rest of the code to create and paint the Stage
 }

 private void paintBoard()
 {
    gridPecas.getChildren().clear();
    // Code to fill the board with ImageView and Images of the pieces
 }
Run Code Online (Sandbox Code Playgroud)

这个方法的问题在于,当"gridPecas.getChildren().clear();"时 被称为我只是松散网格线GridPanel.

我怎么解决这个问题?

gridlines gridpanel javafx-2

7
推荐指数
2
解决办法
3万
查看次数