小编fsp*_*fsp的帖子

可见光谱与gnuplot

所以我有这种数据

3.500E2 -0.956862
...
10.00E2 -1.95941
Run Code Online (Sandbox Code Playgroud)

在一个文件中.

如果我绘制它看起来像这样:

带线的gnuplot图

现在我希望曲线下方的区域充满可见光谱,如下所示:

填充曲线与可见光谱

我已经找到了这个论坛帖子,它为我绘制了一个很好的可见光谱,但我无法进一步添加自己的曲线,因为这似乎是一个pm3d情节.

我能做什么?

plot gnuplot visible spectrum

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

Java中的Mutliround Feistel网络

对于一些学生来说,我需要用Java实现Feistel网络.

我从3个手动回合开始,像这样:

    // round 1
    int[] left1 = right;
    int[] right1 = new int[right.length];

    for(int i = 0; i < right.length; i++){
        right1[i] = left[i] ^ (right[i] ^ keys[0]);
    }

    // round 2
    int[] left2 = right1;
    int[] right2 = new int[right.length];

    for(int i = 0; i < right.length; i++){
        right2[i] = left1[i] ^ (right1[i] ^ keys[1]);
    }

    // round 3
    int[] left3 = right2;
    int[] right3 = new int[right.length];

    for(int i = 0; i < right.length; i++){
        right3[i] = …
Run Code Online (Sandbox Code Playgroud)

java encryption feistel-cipher

5
推荐指数
1
解决办法
1618
查看次数

在UWP Xaml中创建和填充NxN网格

我正在尝试创建一个UWP益智游戏,我想将图片分成n个部分,然后在网格中显示这些部分.

我的问题是,如何强制某种NxN风格.现在我必须最大化窗口以便看到3x3网格,如果我收缩任何一边,它将收敛到2列,1列网格.有办法处理这个吗?

这就是我所做的,我知道RowDefinition现在是手动的,直到我找到一个更好的方法来做到这一点.

<UserControl
    x:Class="PictureSplitter.Views.PictureView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">


        <GridView ItemsSource="{Binding Splitter.PuzzlePositions}">

            <GridView.ItemTemplate>
                <DataTemplate>
                    <Border BorderBrush="Red" BorderThickness="2">
                    <Grid x:Name="picGrid">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Image Source="{Binding Piece.ImageSource}" />
                    </Grid>
                </Border>
                </DataTemplate>
            </GridView.ItemTemplate>

        </GridView>

</UserControl>
Run Code Online (Sandbox Code Playgroud)

这是两个示例图像: 想要网格式

不想要gridstyle

c# wpf xaml uwp

5
推荐指数
1
解决办法
5307
查看次数

标签 统计

c# ×1

encryption ×1

feistel-cipher ×1

gnuplot ×1

java ×1

plot ×1

spectrum ×1

uwp ×1

visible ×1

wpf ×1

xaml ×1