vega

AMD 和 Intel 之战:CPU 哪家强?

坚强是说给别人听的谎言 提交于 2020-05-05 17:53:00
作者 | Paul Alcorn 译者 | 弯月,责编 | 郭芮 以下为译文: 不论是选游戏CPU还是桌面应用的CPU,我们只有两种选择:AMD或者英特尔。两家都有各自的粉丝,所以想买CPU的人很难获得中肯的建议,但其实在很多情况下答案很明显。实际上对于大多数人来说,AMD明显胜出。这个结论是大反转,因为要知道在三年前AMD几乎破产,而如今却能和英特尔统治了十多年的芯片市场上与之一战。 这篇文章从个人电脑的使用目的、价格、性能、驱动支持、能耗和安全性方面讨论AMD与英特尔的桌面级CPU之间永不休止的争论(这里我们不讨论笔记本或服务器的芯片),以及目前两者竞争的现状。我们还会讨论改变了游戏规则的制程和架构。总体上的胜利者毫无疑问,但选择哪家的CPU,应该根据价格、性能以及最看重的功能来综合考虑。 AMD和英特尔CPU的价格和价值比较 不论是谁,价格总是最重要的考虑因素,而在价值方面,AMD很难被打败。AMD的产品有很多额外的优势,如集成散热、所有型号完全支持超频,更不用说各种各样的软件,如Precision Boost Overdrive的自动超频功能。 而Socket AM4主板非常广泛的向前向后兼容性也带来了极大的好处,你花在处理器和主板上的每一分钱都物有所值。AMD还允许除了A系列之外的所有主板进行超频,对于用户来说这也是利好消息。 此外,在AMD和英特尔的CPU大战中

织女星开发板使用RISC-V核驱动GPIO

倖福魔咒の 提交于 2020-04-22 08:54:52
前言 织女星开发板是 OPEN-ISA社区 为中国大陆地区定制的一款体积小、功耗超低和功能丰富的 RISC-V评估开发板,基于NXP半导体四核异构RV32M1主控芯片。 两个RISC-V核:RI5CY + ZERO_RISCY。 两个ARM核: Cortex-M4F + Cortex-M0+ 。 4个核被分为两个子系统,大核CM4F/RI5CY和小核CM0+/ZERO-RISCY,片上集成1.25 MB Flash 、384 KB SRAM,其中1 MB的Flash被大核所使用,起始地址0x0000_0000,另外的256 KB Flash被小核所使用,起始地址0x0100_0000。利用该开发板,用户可以快速建立一个使用 RV32M1 的 RISC-V应用和演示系统。详细的介绍可以参考: 真正的RISC-V开发板——VEGA织女星开发板开箱评测 ,本篇文章介绍如何基于RISC-V RI5CY/ZERO内核来点亮板载的RGB_LED/STS_LED、读取按键输入,演示GPIO的输入输出和外部中断功能。 准备工作 在进行以下操作之前,要确保开发环境已经搭建完成,而且能正常下载调试。 织女星开发板RISC-V开发环境:Eclipse + riscv32 工具链 + OpenOCD调试工具 织女星开发板SDK包:rv32m1_sdk_riscv 织女星开发板的原理图 RV32M1参考手册

Getting Altair to work with Jupyter Notebook

戏子无情 提交于 2020-04-10 04:22:08
问题 Trying to get Altair to work with Jupyter Notebook, I installed it using conda install -c conda-forge altair vega_datasets notebook vega But when I try to do an example plot import altair as alt from vega_datasets import data # for the notebook only (not for JupyterLab) run this command once per session alt.renderers.enable('notebook') iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalLength', y='petalWidth', color='species' ) as seen in their quick start guide, I get ValueError

react-vega and react-vega tooltips

主宰稳场 提交于 2020-01-15 04:52:05
问题 I'm using react-vega-lite . In official examples: https://vega.github.io/vega-lite/ https://vega.github.io/react-vega-lite/ https://vega.github.io/react-vega/ vega-lite (without react) has a tooltip by default react-vega allows to handle onSignalTooltip event. So, I have 2 questions: 1) Is it possible to turn on tooltip with react-vega ( react-vega-lite )? 2) Does react-vega-lite support onSignalTooltip or I need to switch to Vega? 回答1: Add vega-tooltip package as a dependency, then import

Can we add event listeners to “Vega-Lite” specification?

夙愿已清 提交于 2020-01-13 19:52:11
问题 I am new to Vega and Vega-Lite. I am creating a simple bar chart using Vega-Lite but I am not able to add any event listeners e.g. "hover". I want to hover a bar and change the color of the bar. 回答1: If you're using Vega-Embed, it returns a promise with a reference to the view which allows you to use addEventListener - explained in the docs here. Here is an example: const width = 600 const color = blue embed(element, { $schema: 'https://vega.github.io/schema/vega-lite/3.0.0-rc6.json', data: {

Vega-lite heat map text properties

◇◆丶佛笑我妖孽 提交于 2020-01-05 07:08:24
问题 Good time of day! all text - https://github.com/vega/vega-lite/issues/5697 When building data in a block, I would like to change the font size and position of the text in the block. Used the documentation -https://vega.github.io/vega-lite/docs/title.html, but it does not work. block: { "mark": "text" "encoding": { "text": {"field": "z", "type": "quantitative"} "color": {"value": "black"} "fontSize": 40 } Changing the position will allow for the addition of a second text: full code: { "$schema

How to add a slider to a choropleth in altair?

微笑、不失礼 提交于 2020-01-05 04:29:08
问题 I am trying to add a slider to my choropleth plot. The slider is based on "years" from 2006 to 2012 My data is like this: It can be downloaded from here: sample_data.csv When I plot the county level choropleth, It is doing an inner join w.r.t fips code for county using transform_lookup This is my code: slider = alt.binding_range(min=2006, max=2012, step=1) select_year = alt.selection_single(name="year", fields=['year'], bind=slider, init={'year': 2006}) alt.Chart(us_counties).mark_geoshape(

Knitting RMarkdown with ggvis to Word

家住魔仙堡 提交于 2020-01-01 11:59:10
问题 When I try to knit a RMarkdown document with ggvis plots to Word, I get the following message from Rstudio. Error: Functions that produce HTML output found in document targeting docx output. Please change the output type of this document to HTML. Execution halted Does there exist an elegant solution (without too much effort) to make this possible, perhaps using export_png and vg2png ? 回答1: Here is an example: ```{r setup, include=FALSE} library(dplyr) library(ggvis) ``` The following table

Vega-lite bar chart space between bars

风流意气都作罢 提交于 2019-12-25 10:52:13
问题 D3 newbie. How I adjust the spacing between bars in vega-lite bar chart and override the default? binSpacing I think only works on histograms. See code below. I'll want to adjust colour of text and font family too... But am having trouble finding it in the docs. { "$schema": "https://vega.github.io/schema/vega-lite/v2.json", "width": 1200, "height": 900, "data": { "url": "data/seattle-weather.csv" }, "mark": "bar", "encoding": { "x": { "aggregate": "count", "type": "quantitative" }, "size": {

Remove border around vegaEmbed geoshape generated by altair?

允我心安 提交于 2019-12-24 03:59:31
问题 In the below image, observe the border around a map generated from Chart.save() to either HTML or JSON canvas (the border is inside the canvas, not CSS styled). For any other type of mark, one would expect to be able to use Chart.configure_view() to set strokeWidth=0 to remove the border, but this does not appear to affect this geoshape chart. The vegaEmbed embed options do not appear to document what creates this border. Is it possible to style or remove the border? 回答1: The way to remove