使用Java绘制维恩图 [英] Draw Venn diagram using Java

查看:156
本文介绍了使用Java绘制维恩图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从给定的布尔方程中绘制维恩图,例如(a AND b) AND c 我想在Android手机上执行此操作,因此我需要找到一种使用Java进行操作的方法.

I'm trying to draw a Venn diagram from a given boolean equation e.g (a AND b) AND c I want to do this on an android phone so I need to find a way to do it using Java.

我在此布尔代数计算器

他们创建了完美的图表,我确定它没有使用Java,我也看不到他们的逻辑.

They create perfect diagrams, I am sure it's not using Java and neither could I see their logic.

我将不胜感激任何API,算法或指南.

I would appreciate any API, algorithm or guidance.

推荐答案

它使用WolframAlpha小部件生成维恩图.幸运的是,WolframAlpha为此提供了一个API .

It uses a WolframAlpha widget to generate the Venn diagram. Luckily for you, WolframAlpha offers an API for this kinda stuff.

尽管我承认,但这有点过分了.而且您必须连接到互联网才能使用它.

Though I'll admit, it's a bit overkill. And you have to be connected to the internet to use it.

有Java的Venn图绘制解决方案,例如 charts4j .但是,如果使用这些,则必须手动计算突出显示的区域.

There are Venn diagram drawing solutions for Java such as charts4j. But if you use those, you'll have to manually compute which regions are highlighted.

这篇关于使用Java绘制维恩图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆